On Fri, Apr 10, 2015 at 4:11 PM, Hongyi Zhao <hongyi.z...@gmail.com> wrote:

> Say, if I want to find all of the `foo/file' on this rsync server
>

You'd use filter (include/exclude) rules.  See in the man page about its
notes on how rsync requires you to include all directories in order to
traverse the tree and you'd end up with something like this:

rsync -aiv --include=foo/file --include='*/' --exclude='*'
rsync.example.net::module/ /dest/

You might also try using --prune-empty-dirs.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to