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
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 +
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 - - ?
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
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
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 +
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
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
-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
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
-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
:
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
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
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
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
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
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
-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/
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/*/
+
19 matches
Mail list logo