Hi,
I'm having a problem with the --exclude option of rsync. It looks to me
like it is ignored on the client side when transfering files from the server
(that is only for files that exist on the server).
Let me show you my example setup:
/etc/rsyncd.conf:
[test]
comment = Test
path = /tmp/rsync
include from = /tmp/rsync.test
> ls -l /tmp/rsync
total 36
-rw-r--r-- 1 grossman wheel 10 Nov 21 17:57 crap
-rw-r--r-- 1 grossman wheel 11 Nov 21 17:57 file
-rw-r--r-- 1 grossman wheel 15 Nov 21 17:57 notthis
-rw-r--r-- 1 grossman wheel 33557 Nov 21 17:56 test
> cat /tmp/rsync.test
- /notthis
/*
Now on a client I'm running this command:
> rsync -aHov --delete --exclude crap rsync://server/test rsync
receiving file list ... done
created directory rsync
./
crap
file
test
./
wrote 131 bytes read 33840 bytes 67942.00 bytes/sec
total size is 33578 speedup is 0.99
Obviously, the file crap is being copied, but I think it should not be.
Did I misunderstand anything? Is there a way to make it work that I'm
overlooking? Any help is appreciated.
Thanks, Rolf