Re: Finding specific files/directories from a remote rsync server.

2015-04-13 Thread Hongyi Zhao
On Sun, 12 Apr 2015 09:44:56 -0700, Wayne Davison wrote: rsync -aiv --include=foo/file --include='*/' --exclude='*' rsync.example.net::module/ /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

Re: Finding specific files/directories from a remote rsync server.

2015-04-13 Thread Hongyi Zhao
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

Re: Finding specific files/directories from a remote rsync server.

2015-04-12 Thread Wayne Davison
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