Finding specific files/directories from a remote rsync server.

Hongyi Zhao hongyi.zhao at
Mon Apr 13 05:42:22 MDT 2015

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

> rsync -aiv --include=foo/file --include='*/' --exclude='*'
> /dest/

Another issue is as follows:  if I have known that the `foo/file' is 
located under some sub-directories  under a folder named `bar' in in the 
module's directory, in this case, I want to save the time for only 
searching into all of the sub-directories of
bar/.  Then what's revision should be done on the --include='*/' to adapt 
for this case?


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

.: Hongyi Zhao [ hongyi.zhao AT ] Free as in Freedom :.

More information about the rsync mailing list