说明: uid = 0 gid = 0 use chroot = false strict modes = false hosts allow = 192.168.1.3 log file = rsyncd.log # Module definitions # Remember cygwin naming conventions : c:work becomes /cygwin/c/work # [www] path = /cygdrive/e/bakup/1_3/www //CWRsync会自动将系统上所有的盘mount成/cygwin/x,因此/cygdrive/e/bakup/1_3/www指的是e:bakup1_3www目录 read only = false transfer logging = yes auth users = rsyncd secrets file = /cygdrive/D/CWRsync/rsyncd.secrets [mysql] path = /cygdrive/e/bakup/1_3/mysql read only = false transfer logging = yes auth users = rsyncd secrets file = /cygdrive/D/CWRsync/rsyncd.secrets [svn] path = /cygdrive/e/bakup/1_3/ read only = false transfer logging = yes auth users = rsyncd secrets file = /cygdrive/D/CWRsync/rsyncd.secrets
# cat /root/rsyncd.secrets rsyncd //直接输入密码
# crontab -e //添加以下内容 10 3 * * * rsync -vrlptD --progress --password-file=/root/rsyncd.secrets /home/www/data rsyncd@192.168.45.2::www 25 3 * * * rsync -vrlptD --progress --password-file=/root/rsyncd.secrets /home/mysql/data rsyncd@192.168.45.2::mysql 40 3 * * * rsync -vrlptD --progress --password-file=/root/rsyncd.secrets /home/svn rsyncd@192.168.45.2::svn
|