bash: /usr/local/bin/rsync: Argument list too long

victor victor at
Tue Aug 10 11:41:54 GMT 2004

I get this error when I try to copy a directory with a lot of files: 
"bash: /usr/local/bin/rsync: Argument list too long"

The exact command is: "/usr/local/bin/rsync -rsh=/usr/bin/rsh -r 
--delete --perms --owner --group /mail/spool/imap/user/wex/* 
root at".

BUT, if I try tris command it works: "/usr/local/bin/rsync 
-rsh=/usr/bin/rsh -r --delete --perms --owner --group 
/mail/spool/imap/user/* root at".

So I see that rsync does not copies the files if in the root of the 
source directory are too many files. But if they are too meny files in 
any oter directory in works.

I need the first command to work.
How can I do this?

Thank you.

More information about the rsync mailing list