-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 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/*
> [EMAIL PROTECTED]:/mail/spool/imap/user/wex".
>
> 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/* [EMAIL PROTECTED]:/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?
>
> Thank you.

Your shell is expanding the * to create an argument list that is too long.
It's an issue with your shell, not rsync.

- -- 
Mark Watts
Senior Systems Engineer
QinetiQ Trusted Information Management
Trusted Solutions and Services group
GPG Public Key ID: 455420ED

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBGLsPBn4EFUVUIO0RAkNkAKDzsNLYV5jUCzf+MH0z3yML/50RVQCg8r+9
hByFgOrVt9zXmGxftbmIVzI=
=OtuC
-----END PGP SIGNATURE-----
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to