rsync多模块设置:
第一种方法:
##rsyncd.confstart##
uid=rsync
gid=rsync
usechroot=no
maxconnections=200
timeout=300
pidfile=/var/run/rsyncd.pid
lockfile=/var/run/rsync.lock
logfile=/var/log/rsyncd.log
ignoreerrors
readonly=false
list=false
hostsallow=10.0.0.0/24
hostsdeny=0.0.0.0/32
authusers=rsync_backup
secretsfile=/etc/rsync.password
#rsync_config_______________end
[oldboy]
path=/oldboy/
[data]
path=/data/
#rsync_config_______________end
第二种方法:
##rsyncd.confstart##
uid=rsync
gid=rsync
usechroot=no
maxconnections=200
timeout=300
pidfile=/var/run/rsyncd.pid
lockfile=/var/run/rsync.lock
logfile=/var/log/rsyncd.log
[oldboy]
ignoreerrors
readonly=false
list=false
hostsallow=10.0.0.0/24
hostsdeny=0.0.0.0/32
authusers=rsync_backup
secretsfile=/etc/rsync.password
######################################
[test]
ignoreerrors
readonly=false
list=false
hostsallow=10.0.0.0/24
hostsdeny=0.0.0.0/32
authusers=rsync_backup
secretsfile=/etc/rsync.password#rsync_config_______________endpath=/oldboy/