1.配置文件如下:
uid = root gid = root use chroot = no max connections = 5 timeout = 600 pid file = /var/run/rsyncd.pid lockfile = /var/run/rsyncd.lock log file = /var/log/rsyncd.log ignore errors = yes read only = no use chroot = yes hosts allow = 10.35.0.0/24 hosts deny = * auth users = web secrets file = /etc/web.passwd [web1] path = /DATA/disk1/maolu/anaconda3 #use chroot = yes添加如下参考即可解决软件不存在问题
#我用命令参数自行更改()
rsync -auvrtzopgPl --progress --delete --password-file=/tmp/rsync.password /DATA/disk1/ web@10.35.0.84::web2