歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu rsync 3.0 daemon部署注意幾點

Ubuntu rsync 3.0 daemon部署注意幾點

日期:2017/2/28 16:29:03   编辑:Linux教程

Ubuntu rsync 3.0 daemon部署注意一下4點:

1 不會自動生成/etc/rsynd.conf 要自己創建 並加入模塊 和uid gid

uid=nobody
gid=nogroup
max connections=4
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock
secrets file=/etc/rsyncd.pwd
[sytest]
uid=fly
gid=fly
path=/home/fly/sytest
comment = backup test
read only = no
list = no
auth users = sytest
ignore errors = no

2,在/etc/default裡面的rsync文件裡面開啟 daemon模式RSYNC_ENABLE=true

3 ,指定的secrets file 權限 其他人不能read o-r

4,uid gid 會替換相關的同步文件到指定uid gid 組

Copyright © Linux教程網 All Rights Reserved