Finding specific files/directories from a remote rsync server.

Hongyi Zhao hongyi.zhao at gmail.com
Mon Apr 13 05:33:29 MDT 2015


On Sun, 12 Apr 2015 09:44:56 -0700, Wayne Davison wrote:

> 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..

Thanks a lot for your hints.

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.



More information about the rsync mailing list