Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created January 11, 2011 01:59
Show Gist options
  • Save huacnlee/773865 to your computer and use it in GitHub Desktop.
Save huacnlee/773865 to your computer and use it in GitHub Desktop.
Rsync 简单的配置文件
pid file = /var/run/rsyncd.pid
port = 873
address = 172.28.150.23
uid = jason
gid = jason
use chroot = yes
read only = yes
hosts allow = 172.28.150.26
hosts deny = *
max connections = 20
motd file = /etc/rsyncd/rsyncd.motd
log file = /var/log/rsync.log
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
[wwwroot]
path = /home/jason/wwwroot
list=yes
ignore errors
comment = wwwroot dir
@huacnlee
Copy link
Author

客户端同步命令:
rsync -vzrltopg --delete --progress [email protected]::wwwroot /tmp/wwwroot

@huacnlee
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment