Trying to define exclude with an include list

Wayne Davison wayned at samba.org
Fri Jun 1 14:38:45 GMT 2007


On Fri, Jun 01, 2007 at 02:08:08PM +1000, Daryl Sayers wrote:
> + /u1/important
> - /tmp
> - /var/tmp
> - /var/lock
> .... 
> - /u1

The man page talks about how the exclusion of the parent directory
short-circuits the directory traversal, and the u1 dir is never even
visited (giving the include nothing to match).  You need something
like this:

+ /u1/
+ /u1/important
- /u1/*
.....

That way rsync can get into the dir, match what you want, and exclude
everything else.

..wayne..


More information about the rsync mailing list