Problem with many files in rsync server directory ?

Jon Hirst jonh at
Wed Jan 7 10:26:16 GMT 2004

Having had a night to sleep on this I think rsync's limit
on filename globbing needs pointing out more clearly.

I think we need:

1) An entry in the FAQ (Done)

2) A better error message from rsync when it exceeds the
   limit.  Saying:

      rsync: read error: Connection reset by peer
      rsync error: error in rsync protocol data stream (code 12) at

   doesn't help many users.  Not even programmers with 20 years
   experience, like me ;-)

3) How about adding a file called LIMITS to the source
   distribution that tells system administrators and users
   of the limits that are built in to rsync, and how they
   can be changed.

4) Or maybe even - horror or horrors - some comments in
   the source file rsync.h.

-----Original Message-----
From: Wayne Davison [mailto:wayned at]
Sent: 06 January 2004 17:30
To: Jon Hirst
Cc: 'rsync at'
Subject: Re: Problem with many files in rsync server directory ?

On Tue, Jan 06, 2004 at 05:05:16PM -0000, Jon Hirst wrote:
> $ rsync offers at sdnvpn::gsh/* .

There's a limit to how many files you can glob with a wildcard.  Just
remove the wildcard and let rsync transfer the whole directory:

    rsync offers at sdnvpn::gsh/ .

While you're at it, you should probably add (at least) the -t option,
which will preserve timestamps and make future updated copies faster (or
just use -a).


More information about the rsync mailing list