http://liubao0312.blog.51cto.com/2213529/1677586
配置搞定,参照上面的文章,用时搞一搞就OK。
注意IPTABLES的配置及环境变量
最简陋配置:
rsync server端(需要从服务器同步过来)
#Rsync serveruid = rootgid = rootuse chroot = no max connections = 2000 timeout = 600 pid file =/var/run/rsyncd.pid lock file =/var/run/rsync.lock log file = /var/log/rsyncd.logignore errors read only = falselist = falsehosts allow = 172.x.x.0/24, 10.x.x.0/24hosts deny = 0.0.0.0/32auth users = rsync_backupsecrets file =/etc/rsync.password#################################################[www-uploadImage] comment = www upload image rsync path = /home/xxx/test/##################################################rsync_config____________end
/usr/local/sersync/confxml.xml (作为源,同步的文件,用inno检测变化,用rsync客户端同步到服务器)