exclude a pattern but only in the top level

Matthias Schniedermeyer ms at citd.de
Wed May 15 02:40:00 MDT 2013


On 15.05.2013 04:13, Brian K. White wrote:
> How can I get it to exclude just the top-level directory "/foo/aaa" ?

With a '/' at the beginning you pin the pattern to the beginning.

You don't use "/" at the end of directory names, so i'm not sure if the
correct one is:
/aaa
or
/foo/aaa

With a '/' at the end (... source/ target/ ...) it's the first one, in 
your case it might be the other one.


-- 

Matthias


More information about the rsync mailing list