root@doduo:~# cat /etc/rsyncd.conf# sample rsyncd.conf configuration file# GLOBAL OPTIONS#motd file=/etc/motd#log file=/var/log/rsyncd# for pid file, do not use /var/run/rsync.pid if# you are going to run rsync out of the init.d script.# The init.d script does its own pid file handling,# so omit the "pid file" line completely in that case.# pid file=/var/run/rsyncd.pid#syslog facility=daemon#socket options=# MODULE OPTIONS[www]comment=publicarchivepath=/var/www/htmlusechroot=yes# max connections=10lockfile=/var/lock/rsyncd# the default for read only is yes...readonly=falselist=yesuid=www-datagid=www-data# exclude = # exclude from = # include =# include from =authusers=wwwsecretsfile=/etc/rsyncd.secretsstrictmodes=yes# hosts allow = *# hosts deny =ignoreerrors=noignorenonreadable=yestransferlogging=no# log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.timeout=600refuseoptions=checksumdry-rundontcompress=*.gz*.tgz*.zip*.z*.rpm*.deb*.iso*.bz2*.tbz# 避免各种权限问题incomingchmod=Du=rwx,Dgo=rx,Fu=rwx,Fgo=rx