rsync recursion question
Dave Dykstra
dwd at bell-labs.com
Thu Oct 25 07:28:02 EST 2001
On Wed, Oct 24, 2001 at 02:26:29PM -0500, Justin Banks wrote:
> >>>>> "Dave" == Dave Dykstra <dwd at bell-labs.com> writes:
>
> Dave> The filename paths that the exclude algorithm sees are relative to the
> Dave> destination path, they do not include it. It should work if you use
> Dave> --include "/bob**". The slash at the beginning does not indicate the
> Dave> root of a filesystem, it indicates "match only the beginning of a
> Dave> path".
>
> It doesn't, unless I'm misunderstanding what you're saying.
>
> rsync -a --ignore-errors --delete --include "/bob**" -exclude "*" /tmp/empty/
> user at 10.55.11.130::module/tmp/foo/bob
>
> results in everything in /tmp/foo being removed.
I don't understand how it can affect anything above the destination
directory you give; you should be giving a destination directory of
/tmp/foo. Is that what you meant? I tested it and it worked for me.
- Dave Dykstra
More information about the rsync
mailing list