Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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)
uploads
assets
config.inc.php

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/rsyncd.pid
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

 
discard

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

Browse other questions tagged or ask your own question.