@backup-server(192.168.99.112)
#在备份服务器上配置rsync运行在后端进程模式
[root@localhost ~]# yum install rsync-daemon
[root@localhost ~]# vim /etc/rsyncd.conf
uid = rsync
gid = rsync
use chroot = yes
max connections = 4
pid file = /var/run/rsyncd.pid
exclude = lost+found/
transfer logging = yes
timeout = 900
read only = no
fake super = yes
ignore nonreadable = yes
dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
[data]
path = /backup
comment = ftp export area
auth users = rsync_backup
secrets file = /etc/rsyncd.secrets
[root@localhost ~]# echo "rsync_backup:123" > /etc/rsyncd.secrets
[root@localhost ~]# chmod 600 /etc/rsyncd.secrets
[root@localhost ~]# useradd -M -s /sbin/nologin rsync
[root@localhost ~]# mkdir /backup
[root@localhost ~]# chown rsync:rsync