<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 10, 2015 at 4:11 PM, Hongyi Zhao <span dir="ltr"><<a href="mailto:hongyi.zhao@gmail.com" target="_blank">hongyi.zhao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2tw" class="a3s" style="overflow:hidden">Say, if I want to find all of the `foo/file' on this rsync server</div></blockquote></div><br>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:</div><div class="gmail_extra"><br></div><div class="gmail_extra">rsync -aiv --include=foo/file --include='*/' --exclude='*' rsync.example.net::module/ /dest/<br><br>You might also try using --prune-empty-dirs.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">..wayne..</div></div>
</div></div>