1、服务端与客户端安装rsync包
yum -y install rsync
2、编写服务端配置文件/etc/rsyncd.conf
uid = rsync #指定此用户访问
gid = rsync
port = 873
fake super = yes
use chroot = no
max connections = 200
timeout = 600
ignore errors
read only = false
list = false
auth users = rsync_backup #虚拟用户
secrets file = /etc/rsync.passwd #虚拟用户密码
log file = /var/log/rsyncd.log