pid file =/etc/rsync/rsyncd.pid
port = 873
uid = root
gid = root
use chroot = yes
read only = no
[phpcms]
path =/var/www/phpcms
list = yes
ignore error
auth users = www
secrets file =/etc/rsync/rsyncd.secrets
[video]
path=/var/www/apis/data/videos
list=yes
ignore error
auth users =www
secrets file =/etc/rsync/rsyncd.secrets
[static]
path=/var/www/apis/data/static
list=yes
ignore error
auth users =www
secrets file =/etc/rsync/rsyncd.secrets
[www2]
path=/var/www2
list=yes
ignore error
auth users =www
secrets file =/etc/rsync/rsyncd.secrets
##启动
/usr/bin/rsync --daemon --config=/etc/rsync/rsyncd.conf
阅读(1765) | 评论(0) | 转发(0) |