Feature Request - Recursive Rsync Parameter - Example Script

Andrew J. Schorr aschorr at telemetry-investments.com
Thu Oct 23 00:03:08 EST 2003

On Tue, Oct 21, 2003 at 06:46:16PM -0700, jw schultz wrote:
> Limiting the depth of recursion is already supported just
> not intuitive.
> 	rsync -r --exclude='/*/*/*/'
> Your idea for a shell script to automate picking up the
> lower levels is good and could compose the --exclude
> pattern.  The next step would be to set the job partition
> level based on path count as in "find $subtree -print|wc -l".

I have used this technique myself to limit the number of files
processed in a single rsync invocation.  If you use find to locate
the files that you need to process, you can then use the --files-from
option to process a certain number of those files at a time.  This
works like a charm.


More information about the rsync mailing list