日期:2014-05-16 浏览次数:20763 次
# sample rsyncd.conf configuration file 2 3 # GLOBAL OPTIONS 4 5 #motd file=/etc/motd 6 #log file=/var/log/rsyncd 7 # for pid file, do not use /var/run/rsync.pid if 8 # you are going to run rsync out of the init.d script. 9 pid file=/var/run/rsyncd.pid 10 #syslog facility=daemon 11 #socket options= 12 13 # MODULE OPTIONS 14 15 [ftp] 16 17 comment = public archive 18 path = /home/user/adms/materials/ 19 use chroot = yes 20 # max connections=10 21 lock file = /var/lock/rsyncd 22 # the default for read only is yes... 23 read only = yes 24 list = yes 25 uid = nobody 26 gid = nogroup 27 # exclude = 28 # exclude from = 29 # include = 30 # include from = 31 # auth users = 32 # secrets file = /etc/rsyncd.secrets 33 strict modes = yes 34 # hosts allow = 35 # hosts deny = 36 ignore errors = no 37 ignore nonreadable = yes 38 transfer logging = no 39 # log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes. 40 timeout = 600 41 refuse options = checksum dry-run
sudo vim /etc/rsyncd.secrets
#用户名:密码 rsyncuser:123456
chmod 600 /etc/reync.secrets
/etc/init.d/rsync start
sudo lsof -i:873
ps aux | grep rsync
rsync -vzrtopg --progress --delete rsyncuser@192.168.2.254::ftp /home/rsync/temp/