默认centos都有安装 如果没有可以先检查
rpm -qa rsync yum install rsync
服务端部分(备份服务器)
1.写配置文件
vi /etc/rsyncd.conf
/etc/rsyncd: configuration file for rsync daemon mode
See rsyncd.conf man page for more options.
configuration example: uid = rsync gid = rsync
use chroot = yes
list = yes
address = 192.161.1.1 max connections = 10 pid file = /var/run/rsyncd.pid log file = /var/log/rsyncd.log
exclude = lost+found/
transfer logging = yes
timeou