-
-
Save rainly/882861 to your computer and use it in GitHub Desktop.
Rsync 简单的配置文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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