On Thu, Jan 22, 2009 at 07:17, Raymond Norton <admin at lctn.org> wrote:
> I'm running into the "Arguments too long" error when attempting to scp
> 16000+ flash files to a server. A couple solutions I found mentioned
> shortening the file list, or modifying binfmts.h.
>
> I don't want to do either. Is there another easy way to get the files
> copied over?
>
> I'm moving the files from a usb drive on Ubuntu to a Freenas box.

rsync over ssh, provided you have rsync on both boxes:
rsync -av -e ssh <files> <remoteuser>@<remotehost>

you can also do tar over ssh, which can be faster on reliable networks
but is not interruptable:
cd <to your stuff>
tar cf - . | ssh <remoteuser>@<remotehost> "cd <destination>; tar xf -"