客户端:
yum install -y rsync
vi /etc/rsyncd.secrets
username:password
rsync -av yourfire --password-file=/etc/rsyncd.secrets username@serverip::yourtag
服务端:
yum install -y rsync
vi /etc/rsyncd.conf
[yourtag]
comment="hehe"
path=/home/xxxx
auth user = username
uid = nobody
gid = nobody
secrets file = /etc/rsyncd.secrets
read only = no