rsync 备份服务搭建(完成)
rsync服务守护进程 服务器端配置过程: 1. 检查rsync是否安装: rpm -qa rsync 2.添加rsync服务的用户,管理本地目录 useradd-s /sbin/nologin -M rsync 3.生成rsyncd.conf 配置文件(默认没有需要手动创建) touch /etc/rsyncd.conf 4. 写入配置到 /etc/rsyncd.conf 文件中 #rsync_config #created by HQ at 2017 ##rsyncd.conf start## uid = rsync gid = rsync use chroot = no max connections = 200 timeout = 300 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log ignore errors read only = false list = false hosts allow = 172.16.1.0/24 hosts deny = 0.0.0.0/32 ##这两个同时写,那就会造成其他IP段也能通过rsync传文件,解决办法,保留一个 auth users = rsync_backup secrets file