rsync 2.5.6 globbing bug

Wayne Davison wayned at
Thu Jul 31 08:20:12 EST 2003

On Wed, Jul 30, 2003 at 11:06:03PM +0100, Alan Burlison wrote:
> What I'm trying to do is just mirror a given directory *without*
> recursively descending into subdirs.

The best way to do this is to use a starting dir, the --recursive
option, and then exclude all subdirs:

rsync -av exclude='*/' host::module/path/ .

> Inability to mirror large directories sure looks like a bug to me rather 
> than 'cockpit error'.  As I said, I'm happy to submit a patch.

Since the arg-list created for file globbing is allocated memory extra
to the file list that will be created for the transfer, it's certainly
more efficient to use the aforementioned exclusion method.  The current
limit of 1000 files seems rather arbitrary, but I'm not sure that it
really needs to be made larger than this (given that there are ways to
work around the limit).  You can feel free to disagree, if you like --
let me know your reasons, if you do.


More information about the rsync mailing list