Re: Yet another include/exclude question

2009-11-09 Thread Thomas Gutzler
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 a

Re: Yet another include/exclude question

2009-11-09 Thread Matt McCutchen
On Tue, 2009-11-10 at 09:45 +0800, Thomas Gutzler wrote: > Thanks everyone for your help, I've got what I want. > > Wayne Davison wrote: > > On Sun, Nov 8, 2009 at 10:21 PM, Thomas Gutzler > > mailto:thomas.gutz...@gmail.com>> wrote: > > > > I thought --include="/this_dir/" --include="/this_d

Re: Yet another include/exclude question

2009-11-09 Thread Thomas Gutzler
Thanks everyone for your help, I've got what I want. Wayne Davison wrote: > On Sun, Nov 8, 2009 at 10:21 PM, Thomas Gutzler > mailto:thomas.gutz...@gmail.com>> wrote: > > I thought --include="/this_dir/" --include="/this_dir/***" would do it, > but it doesn't. The exclude * seems to overw

Re: Yet another include/exclude question

2009-11-09 Thread Wayne Davison
On Sun, Nov 8, 2009 at 10:21 PM, Thomas Gutzler wrote: > I thought --include="/this_dir/" --include="/this_dir/***" would do it, > but it doesn't. The exclude * seems to overwrite the include matches: > [sender] hiding file this_dir/foo because of pattern * > Order is important. Whatever matche

Re: Yet another include/exclude question

2009-11-08 Thread Thomas Gutzler
What if I also want to include everything in /this_dir/ without running two instances and still being able to use --delete? I thought --include="/this_dir/" --include="/this_dir/***" would do it, but it doesn't. The exclude * seems to overwrite the include matches: [sender] hiding file this_dir/fo

Yet another include/exclude question

2009-11-05 Thread Thomas Gutzler
Hi, How can I include only *.foo and *.bar files in an rsync? To make it a bit more difficult: Those files can be anywhere in the directory structure. I've been reading and trying for a while but the best I got is all *.foo and *.bar files in ./ but none of the ones inside any directories. Cheer