wildcards and nested files

Steven Levine steve53 at earthlink.net
Tue Jul 2 15:10:15 MDT 2013


In <CAN0CFw06x_7g-Z3NTHOK35L2CO4Euv9H1+40YzPi_oi_8ffKcg at mail.gmail.com>,
on 07/02/13
   at 12:25 PM, Grant <emailgrant at gmail.com> said:

Hi,


>> rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded /
>> user at hostname:

>> excludes.txt:
>> + /
>> + /etc
>> + /etc/**
>> + /home
>> + /home/*/
>> + /home/*/.maildir/
>> + /home/*/.maildir/**
>> - - *

>So the includes are in excludes.txt prefixed with "+ " and the excludes
>are prefixed with "- - "?

Since excludes.txt is an --exclude-from file, the - is optional. 
Similarly, if you are using an --include-from file, the + is optional. 
These are both specializations of the generic --filter='merge filters.txt'
filter option.  See the rsync man page for the gory details.

Steven

-- 
----------------------------------------------------------------------
"Steven Levine" <steve53 at earthlink.net>  eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
----------------------------------------------------------------------



More information about the rsync mailing list