Re: wildcards and nested files

2013-07-18 Thread Grant
Is there a rule I can apply to figure out the proper order for includes and excludes? Rules are evaluated in the order they are defined. The first rule with a pattern that that matches is the rule that applies. That makes sense, thank you for all your help. - Grant -- Please use reply-all

Re: wildcards and nested files

2013-07-03 Thread Grant
Anyways, the other way to do what you are asking is: rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@hostname: excludes.txt: + / + /etc + /etc/** + /home + /home/*/ + /home/*/.maildir/ + /home/*/.maildir/** - - * So the includes are in excludes.txt prefixed with +

Re: wildcards and nested files

2013-07-03 Thread Grant
rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@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 - - ?

Re: wildcards and nested files

2013-07-03 Thread Francis . Montagnac
Hi On Wed, 03 Jul 2013 11:00:38 +0200 Grant wrote: These are both specializations of the generic --filter='merge filters.txt' filter option. See the rsync man page for the gory details. That's a great feature and I think it should be referenced in some way under --include-from and

Re: wildcards and nested files

2013-07-03 Thread Grant
These are both specializations of the generic --filter='merge filters.txt' filter option. See the rsync man page for the gory details. That's a great feature and I think it should be referenced in some way under --include-from and --exclude-from in man rsync. This is almost already the

Re: wildcards and nested files

2013-07-03 Thread Grant
Anyways, the other way to do what you are asking is: rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@hostname: excludes.txt: + / + /etc + /etc/** + /home + /home/*/ + /home/*/.maildir/ + /home/*/.maildir/** - - * So the includes are in excludes.txt prefixed with +

Re: wildcards and nested files

2013-07-03 Thread Steven Levine
In CAN0CFw1Q-z4oBLTuYfTS-a37ZzLb8=cwofnpfsgqxt7q1pn...@mail.gmail.com, on 07/03/13 at 02:55 AM, Grant emailgr...@gmail.com said: Hi Grant, Is there a rule I can apply to figure out the proper order for includes and excludes? Rules are evaluated in the order they are defined. The first rule

Re: wildcards and nested files

2013-07-03 Thread Steven Levine
In can0cfw3jrk2saezrxxqfdz6lgnonwucpejfbr1pwv9mxujo...@mail.gmail.com, on 07/03/13 at 01:49 AM, Grant emailgr...@gmail.com said: Hi Grant, I couldn't agree more. May I suggest that the man page make reference to this feature under --include-from and --exclude-from ? It does, but you have to

Re: wildcards and nested files

2013-07-03 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The way I think of it is that by default everything is included. Excludes override that and remove certain paaterns. Includes override that and put back in certain patterns. On 07/03/13 05:55, Grant wrote: Anyways, the other way to do what you are

wildcards and nested files

2013-07-02 Thread Grant
I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc /home/*/.maildir Is this the best way to do it: rsync -arzv --delete-excluded --files-from 'files-from.txt' --include-from 'include

Re: wildcards and nested files

2013-07-02 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync -aRzv /etc /home/*/.maildir rsyncuser@hostname: On 07/02/13 08:17, Grant wrote: I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc

Re: wildcards and nested files

2013-07-02 Thread Kevin Korb
: On 07/02/13 08:17, Grant wrote: I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc /home/*/.maildir Is this the best way to do it: rsync -arzv --delete-excluded --files-from 'files

Re: wildcards and nested files

2013-07-02 Thread Grant
rsync -aRzv /etc /home/*/.maildir rsyncuser@hostname: I'd actually like to use --files-from so it's easier to manage and --files-from doesn't support wildcards. That's why it gets so messy. - Grant I'm trying to use wildcards and nested files and I think there must be a better way than

Re: wildcards and nested files

2013-07-02 Thread Grant
the destination? Is there a workaround for that? I'd like to keep the source and destination in sync. - Grant I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc /home/*/.maildir

Re: wildcards and nested files

2013-07-02 Thread Kevin Korb
to use --files-from so it's easier to manage and --files-from doesn't support wildcards. That's why it gets so messy. - Grant I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc

Re: wildcards and nested files

2013-07-02 Thread Kevin Korb
for that? I'd like to keep the source and destination in sync. - Grant I'm trying to use wildcards and nested files and I think there must be a better way than what I'm doing. If I want to copy only these two directories: /etc /home/*/.maildir Is this the best way to do

Re: wildcards and nested files

2013-07-02 Thread Grant
Anyways, the other way to do what you are asking is: rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@hostname: excludes.txt: + / + /etc + /etc/** + /home + /home/*/ + /home/*/.maildir/ + /home/*/.maildir/** - - * So the includes are in excludes.txt prefixed

Re: wildcards and nested files

2013-07-02 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/02/13 15:25, Grant wrote: Anyways, the other way to do what you are asking is: rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@hostname: excludes.txt: + / + /etc + /etc/** + /home + /home/*/ + /home/*/.maildir/

Re: wildcards and nested files

2013-07-02 Thread Steven Levine
In can0cfw06x_7g-z3nthok35l2co4euv9h1+40yzpi_oi_8ff...@mail.gmail.com, on 07/02/13 at 12:25 PM, Grant emailgr...@gmail.com said: Hi, rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded / user@hostname: excludes.txt: + / + /etc + /etc/** + /home + /home/*/ +