閱讀593 返回首頁    go 阿裏雲 go 技術社區[雲棲]


rsync樣例

uid = nobody
gid = nobody
use chroot = no
max connections = 10
strict modes = yes
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[xxwg]
path = /test
comment = xxwg file
ignore errors
read only = no
write only = no
hosts allow = *
hosts deny = 192.168.12.100
list = false
uid = root
gid = root
auth users = backup    #注:此賬號隻是用來傳輸上的驗證,並不需要在係統裏新建賬號
secrets file =  /etc/server.pass
其中,/etc/server.pass內容如下:(server.pass 文件保持屬主的600權限)
;backup:123456

最後更新:2017-11-18 03:34:13

  上一篇:go  mysql表重命名
  下一篇:go  rsync cannot delete non-empty directory