*/1 * * * * rsync -zvrtopg --delete -progress -e 'ssh -p 22' root@172.22.3.181:/opt/rsynctest/ /opt/rstest/
备机配置:rsync -aSvH /webapps/IDManage/ root@172.22.3.181::data --password-file=/etc/sery_client.pass
主机执行:/usr/bin/rsync -vzrtopg --password-file=/etc/rsync.pass /etc/rsync.pass root@172.22.3.182::picData
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
本文转自flayber 51CTO博客,原文链接:http://blog.51cto.com/406647516/1735073,如需转载请自行联系原作者