日期:2014-05-16 浏览次数:20759 次
chkconfig xinetd on chkconfig rsyncd on
uid = nobody gid = nobody max connections = 4 [www] path = /var/www comment = BACKUP WWW ignore errors read only = yes list = no auth users = wwwuser # hosts allow = 124.91.134.56 secrets file = /etc/wwwuser.pass
[www2] path = /var/www2 comment = BACKUP WWW2 ignore errors read only = yes list = no auth users = wwwuser # hosts allow = 124.91.134.56 secrets file = /etc/wwwuser.pass
wwwuser:8888
sudo chmod 600 /etc/wwwuser.pass
service xinet restart
8888(注:此处没有用户名,只用写密码)
cd "D:\cwrsync\bin" rsync -rlptDzvP --progress --delete --password-file=/cygdrive/d/cwrsync/wwwuser.pass wwwuser@remoteserver::www /cygdrive/d/web/www