On Wed, Oct 24, 2001 at 02:26:29PM -0500, Justin Banks wrote: > >>>>> "Dave" == Dave Dykstra <[EMAIL PROTECTED]> 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/ > [EMAIL PROTECTED]::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