rsync 备份文件配置实例

rsync-server 服务器端
 
use chroot = false
strict modes = false
hosts allow = 192.168.1.14
log file = rsyncd.log
pid file = rsyncd.pid
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/d/upfile.[url]www.yiji.net[/url]
read only = false
transfer logging = yes
secrets file = /c/Program Files/88kcwRsyncServer/rsyncd.secrets
 
rsync-client 客户端
 
rsync -vzrtopg --progress --password-file=/cygdrive/c/windows/rsyncd.secrets [email protected]::test /cygdrive/d/yiji/www.yiji.net/www.yiji.net.ROOT/index/
##注释 [email protected]::test 为源数据目录
       /cygdrive/d/yiji/www.yiji.net/www.yiji.net.ROOT/index/ 目标数据目录

你可能感兴趣的:(职场,rsync,休闲,备份文件配置实例)