| 1 | # 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 | # The init.d script does its own pid file handling, |
| 10 | # so omit the "pid file" line completely in that case. |
| 11 | # pid file=/var/run/rsyncd.pid |
| 12 | #syslog facility=daemon |
| 13 | #socket options= |
| 14 | |
| 15 | # MODULE OPTIONS |
| 16 | |
| 17 | [ftp] |
| 18 | |
| 19 | comment = public archive |
| 20 | path = /var/www/pub |
| 21 | use chroot = yes |
| 22 | # max connections=10 |
| 23 | lock file = /var/lock/rsyncd |
| 24 | # the default for read only is yes... |
| 25 | read only = yes |
| 26 | list = yes |
| 27 | uid = nobody |
| 28 | gid = nogroup |
| 29 | # exclude = |
| 30 | # exclude from = |
| 31 | # include = |
| 32 | # include from = |
| 33 | # auth users = |
| 34 | # secrets file = /etc/rsyncd.secrets |
| 35 | strict modes = yes |
| 36 | # hosts allow = |
| 37 | # hosts deny = |
| 38 | ignore errors = no |
| 39 | ignore nonreadable = yes |
| 40 | transfer logging = no |
| 41 | # log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes. |
| 42 | timeout = 600 |
| 43 | refuse options = checksum dry-run |
| 44 | dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz |