Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use a text file to contain the excluded files for the rsyncd daemon. I followed the rsyncd.con manual and put:

exclude from = /etc/rsync-exclude.txt 

But it seems not working. What could be the possible cause.

I googled a lot for this problem, but nothing useful turned out.

UPDATE: here is what's in rsync-exclude.txt

.git (I also tried putting it as /.git but that didn't work either)

Here is the global configurations in rsyncd.conf :

uid = www
gid = www
max connections = 600
use chroot = no
transfer logging = yes
log file = /var/log/rsyncd.log
log format = %t %a %m %f %b
log file = /var/log/rsyncd.log
pid file=/var/run/
lock file=/var/run/rsyncd.lock
#motd file = /etc/rsyncd/rsyncd.motd

read only = no
list = no
ignore errors = yes
share|improve this question
On the topic of the question, can you post what files you're trying to exclude, and what config you've put in that file to do it? – Shane Madden Aug 16 '11 at 4:28
Does it work when specifying a --exclude-from from the command line as an argument? – quanta Aug 19 '11 at 6:29
rsyncd.conf(5) says that to exclude entire directories you need to use /uploads/***. Also try prefixing the lines with - to make the exclude explicit. – mgorven Apr 14 '12 at 6:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.