Rsync prune entire subtree, not just pattern
From: Greg Orange (no_at_address.given)
Date: 02/07/05
- Previous message: TB: "Re: shell scripts and cron"
- Next in thread: Dirk Gouders: "Re: Rsync prune entire subtree, not just pattern"
- Reply: Dirk Gouders: "Re: Rsync prune entire subtree, not just pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 07 Feb 2005 12:53:55 +0800
Hi,
I'm using rsync with the --exclude-from=file.txt option, and I don't
know how to make it's behaviour model what I want. For example, I wish
to not sync the /share directory of the source machine, so my file.txt
simply looks like this:
share
Now this works, but it also excludes any other instances of the share
directory, or files named share, in the rest of the filesystem.
Extensive googling hasn't helped, and I can't find anywhere that the
doco refers to this issue. I've tried things such as ^share or ^/share,
but I'm not sure if I should be using regex matching or something else.
Am I asking in the right forum?
Cheers,
Greg.
- Previous message: TB: "Re: shell scripts and cron"
- Next in thread: Dirk Gouders: "Re: Rsync prune entire subtree, not just pattern"
- Reply: Dirk Gouders: "Re: Rsync prune entire subtree, not just pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]