On Mon, 2006-06-12 at 08:32 -0500, helices wrote:
> I am confused with man rsyncd.conf, where the manpage states:
>     "it only applies on the daemon"

Excludes in rsyncd.conf are meant for files that are in module
directories for reasons unrelated to the rsync daemon and that should be
inaccessible to all clients for security reasons.  These excludes are
not meant for directories that a certain client wants to skip pulling,
although they will achieve what you want.  I recommend specifying the
filters on the client instead.

> I have tried specifying this several ways, in the CLI on [A]:
> 
>     -f - /bragi/ \
>     -f - /brono/ \
>     -f - /jord/ \
>     -f - /loki/ \
>     -f - /odin/ \
> 
> _both_ before and _after_ specifying source and destination.

Rsync needs to see each filter as a single argument (e.g., "- /bragi/"),
so quote them for the shell:
        -f "- /bragi/" \
        -f "- /brono/" \
        -f "- /jord/" \
        -f "- /loki/" \
        -f "- /odin/" \

(Wayne: It would be good to mention this in the man page.  The attached
patch is one way to do so.)

Matt
Index: rsync.yo
===================================================================
RCS file: /cvsroot/rsync/rsync.yo,v
retrieving revision 1.374
diff -u -r1.374 rsync.yo
--- rsync.yo	30 May 2006 17:47:20 -0000	1.374
+++ rsync.yo	12 Jun 2006 14:19:20 -0000
@@ -1110,7 +1110,8 @@
 most useful in combination with a recursive transfer.
 
 You may use as many bf(--filter) options on the command line as you like
-to build up the list of files to exclude.
+to build up the list of files to exclude.  If the filter contains a space, be
+sure to quote it so that the shell gives it to rsync as a single argument.
 
 See the FILTER RULES section for detailed information on this option.
 
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to