[OT] Argument list too long

Magnus Therning magnus at therning.org
Fri Aug 12 17:26:41 UTC 2005


On Fri, Aug 12, 2005 at 06:18:27PM +0200, Thomas Kaiser (ubuntu) wrote:
>Hello All
>
>I try to copy my mp3's (108GB) from a nethd to the local hd on my box.
>Nautilus just stops copy after some times (no message, just stops). So
>I tried it on the command line with cp and got:
>
>thomas at AMD64:~$ cp -r /media/nethd/Sound/* /media/Sound/
>bash: /bin/cp: Argument list too long
>
>So, I tried rsync:
>
>thomas at AMD64:~$ rsync -rvtn --modify-window=1 --exclude "lost+found" 
>/media/nethd/Sound/* /media/Sound
>bash: /usr/bin/rsync: Argument list too long
>
>Any help?

Don't use *!

As the rsync man page mentions you can do the following:

 thomas at AMD64:~$ rsync -rvtn --modify-window=1 --exclude "lost+found" /media/nethd/Sound /media/Sound

Note the lack of '/'.

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Mary had a little key (It's all she could export),
and all the email that she sent was opened at the Fort.
      -- Ron Rivest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050812/c13279c5/attachment.sig>


More information about the ubuntu-users mailing list