Skip to content

Instantly share code, notes, and snippets.

@rainly
Forked from huacnlee/rsync.conf
Created March 23, 2011 09:47
Show Gist options
  • Select an option

  • Save rainly/882861 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/882861 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
客户端同步命令:
rsync -vzrltopg --delete --progress [email protected]::wwwroot /tmp/wwwroot
文章: http://huacnlee.com/blog/using-rsync-to-sync-or-backup-multi-servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment