Excluding/Hiding a local, absolute path in 3.0.7
Matt McCutchen
matt at mattmccutchen.net
Sat Mar 6 15:23:13 MST 2010
[Going through old email. I wanted to confirm whether there was an
rsync bug here.]
On Wed, 2010-02-03 at 18:16 -0500, Ryan Flannery wrote:
> The command I'm using is this:
> rsync -avz --delete --delete-excluded --exclude-from=foo.txt /etc/
> $dest:path
>
> Where foo.txt contains either:
> hide,/ /etc/passwd
> or
> hide,/s /etc/passwd
> or
> -/ /etc/passwd
> or
> -/s /etc/passwd
>
> In either case, the file /etc/passwd is always transferred to $dest:path
--exclude-from only supports a file of plain exclude patterns. Use
--filter='. foo.txt' instead.
--
Matt
More information about the rsync
mailing list