rsyncd.conf

Rsync 配置文件,默認目錄爲 /etc/rsyncd.conf

uid = root #運行RSYNC守護進程的用戶
gid = root #運行RSYNC守護進程的組
use chroot = no #不使用chroot
max connections = 4 # 最大連接數爲4
strict modes =yes #是否檢查口令文件的權限
port = 873 #默認端口873
 
[backup] #這裏是認證的模塊名,在client端需要指定
path = /home/backup/ #需要做鏡像的目錄,不可缺少!
comment = This is a test #這個模塊的註釋信息 
ignore errors #可以忽略一些無關的IO錯誤
read only = no# 只讀
list = no #不允許列文件
auth users = hening #認證的用戶名,如果沒有這行則表明是匿名,此用戶與系統無關
secrets file = /etc/rsync.pas #密碼和用戶名對比表,密碼文件自己生成
hosts allow = 10.96.9.105,10.96.9.113#允許主機內容ip
hosts deny = 0.0.0.0/0 #禁止主機
#transfer logging = yes
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章