I am running rsync -avz from [A], to pull a directory from [B]. I want to _exclude_ several directories on [B] from being pulled across. Since these directories have short names, I hope that I can either specify them inline rsyncd.conf on [B]; or, inline to the CLI on [A]. I am confused with man rsyncd.conf, where the manpage states: "it only applies on the daemon" 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. I know that the rest of the syntax I am using is correct, because _without_ those filters, it brings everything across ;< What am I missing? -- Best Regards, helices - Dare to fix things before they break . . . - Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . . -- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.samba.org/archive/rsync/attachments/20060612/150d0b00/attachment.bin
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: man-quote-filter.diff Type: text/x-patch Size: 683 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20060612/6ba7a243/man-quote-filter.bin