获取 rsync-3.1.0:
http://pan.baidu.com/s/1dDs4lSt
rsync安装过程:
rsync-3.1.0.tar.gz
rsync配置文件:
use chroot = no
max connections=36000
log file=/home/work/rsync/log/rsyncd.log
pid file=/home/work/rsync/rsyncd.pid
lock file=/home/work/rsync/rsyncd.lock
[data]
path = /home/work/www/
comment = data
auth users = work
uid = work
gid = work
secrets file = /home/work/rsync/etc/rsyncd.pas
read only = false
write only = yes
启动rsync服务:
错误:
@ERROR: setgroups failed
rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]
原因:
服务端rsync与传输rsync版本不一致。
解决:
调整为一致的rsync版本就可以了。