scp 2gb file limit

If it doesn't fit in another category, ask it here.
Post Reply
vara
Posts: 6
Joined: 2006/01/17 16:40:09

scp 2gb file limit

Post by vara » 2007/12/12 22:25:28

I am trying to transfer a file larger than 2GB from one centos system to another. It seems to stop at 2GB. Any solutions to this problem.

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

Re: scp 2gb file limit

Post by yyagol » 2007/12/23 20:40:28

Yes there is , i try to copy a 4.2G file today with scp and got error,
after allot of searching the web it looks like scp is limited to 2.4G.
what i did was using [b]mc[/b] to do the work i'm not sure what protocol it uses
but it makes it even easy to handle .

pjwelsh
Posts: 2598
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: scp 2gb file limit

Post by pjwelsh » 2007/12/24 02:16:38

Use rsync. Not only does it not have that limit, it uses ssh as the transport (by default now). Make sure to use the "P" or "p" option to "preserve" the temp file in case of a network drop (so you don't have to start over). So, something like:

rsync -avP /path/to/source/file dest_host:/path/to/dest/

as a first try. The placement of "/" at the end (or not) makes a difference, so be careful.

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”