Created
July 8, 2013 04:03
-
-
Save azhai/5946169 to your computer and use it in GitHub Desktop.
Rsync服务端主配置/etc/rsync/rsyncd.conf
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
#客户端传输 | |
#/usr/bin/rsync -vzrtopg --progress /home/ryan/apps/* \ | |
# [email protected]::apps --password-file=/home/ryan/bin/rsync.pass | |
pid file = /var/run/rsyncd.pid | |
port = 873 | |
address = 192.168.1.23 | |
uid = root | |
gid = root | |
use chroot = yes | |
read only = no | |
#limit access to private LANs | |
#设置可访问的主机:如果多个ip则用空格隔开:192.168.0.3 192.168.0.4 192.168.0.5或者设置区间 192.168.0.3/5 | |
hosts allow = 192.168.1.0/24 | |
hosts deny = * | |
max connections = 5 | |
motd file = /etc/rsync/rsyncd.motd | |
#This will give you a separate log file | |
log file = /var/log/rsync.log | |
#This will log every file transferred - up to 85,000+ per user, per sync | |
transfer logging = yes | |
log format = %t %a %m %f %b | |
syslog facility = local3 | |
timeout = 300 | |
[apps] | |
#要同步服务器的目录路径 | |
path = /var/www/apps | |
list = yes | |
ignore errors | |
#真实的系统用户,多个用户用逗号隔开 | |
auth users = root | |
#密码文件 | |
secrets file = /etc/rsync/rsyncd.secrets | |
comment = projects | |
#不同步的目录或文件,用空格隔开 | |
exclude = .svn/ *.rar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment