sunfull 发表于 2018-10-21 13:53:06

rsync server架设

# Minimal configuration file for rsync daemon  
# See rsync(1) and rsyncd.conf(5) man pages for help
  

  
# This line is required by the /etc/init.d/rsyncd script
  
pid file = /var/run/rsyncd.pid
  
port = 873
  
#addrss后面的IP是运行rsync server 的机器IP
  
address = 192.168.136.128
  
#uid = nobody
  
#gid = nobody
  
uid = root
  
gid = root
  

  
use chroot = yes
  
read only = no
  

  

  
#limit access to private LANs
  
hosts allow=192.168.136.0/255.255.255.0
  
hosts deny=*
  

  
#允许5个并发同时进行
  
max connections = 5
  
motd file = /etc/rsyncd/rsyncd.motd
  

  
#开启日志
  
log file = /var/log/rsync.log
  

  
#This will log every file transferred - up to 85,000+ per user, per sync
  
#transfer logging = yes
  

  
log format = %t %a %m %f %b
  
syslog facility = local3
  
timeout = 300
  

  

  
path = /home/test
  
list=yes
  
ignore errors
  
auth users = test
  
secrets file = /etc/rsyncd/rsyncd.secrets
  
comment = test home
  
exclude =   test/


页: [1]
查看完整版本: rsync server架设