bash: /usr/local/bin/rsync: Argument list too long
YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=
yoshfuji at wide.ad.jp
Tue Aug 10 12:05:40 GMT 2004
In article <4118B482.90900 at ambra.ro> (at Tue, 10 Aug 2004 14:41:54 +0300), victor <victor at ambra.ro> says:
> 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 192.168.250.68:/mail/spool/imap/user/wex".
> 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?
This is nothing to do with rsync, but your shell.
Anyway, RTFM, or you may want to try xargs(1).
More information about the rsync