rysnc同步文件(转载)

用rysnc同步文件,rsync是一款非常优秀的文件同步管理软件,它也支持多种操作系统平台,在Unix环境中,rsync有着卓绝的功绩。希望这篇文档能对一些朋友有所帮助。
1. 安装

下载地址链接 http://www.samba.org/rsync

shell> tar zxvf rsync-x.x.x.tar.gz
shell> cd rsync-x.x.x
shell> ./configure && make && make install
目前大部分 Unix/Linux 默认即安装了 rsync。
2.配置文件 /etc/rsyncd.conf
 
shell> touch /etc/rsyncd.conf
shell> vi /etc/rsyncd.conf

修改配置文件 /etc/rsyncd.conf as below:
 
uid = nobody
gid = nobody
use chroot = no
max connections = 5
pid file = /var/run/rsync.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
path =
ignore errors
read only = no
list = yes
auth users = username
secrets file = /etc/rsyncd.secrets

3. /etc/rsync.secrets

shell> echo "XXX:password" >>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值