rsync 2.5.6 globbing bug

Alan Burlison Alan.Burlison at
Thu Jul 31 08:06:03 EST 2003

jw schultz wrote:

> On Wed, Jul 30, 2003 at 10:44:37PM +0100, Alan Burlison wrote:
>>$ rsync -auv \
>>* . \
>>| grep -v MOTD:
> Cockpit error.
> This isn't DOS.  Don't use * when you want the all directory contents.
> 	rsync -auv . 
> Will work correctly and is safe from the local shell
> globbing which would have given you an error message had you
> been using csh with default options.

Oops, sorry, wrong command-line flags in the cut-n-paste.  What I'm trying 
to do is just mirror a given directory *without* recursively descending into 
subdirs.  The correct invocation to show the issue is

$rsync -lptv \
'*' . \
| grep -v MOTD:

If you leave off the '*' at the end you get this error:

client: nothing to do: perhaps you need to specify some filenames or the 
--recursive option?

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.

Alan Burlison

More information about the rsync mailing list