[test]
path = /tmp/foo
exclude = /bar/bazAnd a file /tmp/foo/bar/baz/biff
rsync -avvH rsync://server/test/ /mydir/
correctly excludes the directory baz.
However:
rsync -avvH rsync://server/test/bar/ /mydir/bar/
does not
As far as I can tell, if the directory exported on the server has sub-directories, there is absolutely no way to reliably exclude full paths. This is _really_ bad if you want to make a directory available, but do not want some sensitive files in a subdirectory available (say, private key files).
The server _really_ should do some path canonicalization on the server side before comparing against excludes / includes.
-- Carson
-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
