Yet another include/exclude question

Thomas Gutzler thomas.gutzler at
Mon Nov 9 20:03:35 MST 2009

Matt McCutchen wrote:
> On Tue, 2009-11-10 at 09:45 +0800, Thomas Gutzler wrote:
>> Thanks everyone for your help, I've got what I want.
>> My first attempt has been
>> --include="*/" --include="*.foo" --include="*.bar"
>> --include="/this_dir/***" --exclude="*"
>> which did nothing than *.foo and *.bar. Shuffling it around, I found that
>> --include="*/" --include="/this_dir/***" --include="*.foo"
>> --include="*.bar" --exclude="*"
>> does what I want and it even makes sense.
> Those two commands should be equivalent.  If you have a reproducible
> case in which they aren't, please share it and we can see if there's a
> bug.

Going through my history, I found that I must have accidentally put a
whitespace between '--include' and '=' which wasn't very obvious at the
time thanks to the line wrapping of my terminal. I should have used an
include file instead :)
So no, no bugs.


More information about the rsync mailing list