LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2007, 06:53 AM   #1
augustosup
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
After copying 6 GB, scp fails (lost connection)


Hi all,

I'm using scp to do a remote copy and after copying 6 GB, it fails. When I use the -v option I can see the "lost connection" message in the log. Below are the last lines of the log generated.
...
Sending file modes: C0777 56 wxis.lic
Sink: C0777 56 wxis.lic
Sending file modes: C0644 754 fer ser preencido para comecar a mostrar o html.
A ideia e&#39 que uma vez preenchido o buffer
Sink: C0644 754 fer ser preencido para comecar a mostrar o html.
lost connection

Anybody can help me ? I need to do a remote copy urgent ...
Regards,
Augusto Vinhaes
 
Old 01-26-2007, 10:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,492
Blog Entries: 54

Rep: Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906Reputation: 2906
No idea, mi no hablar that ;-p How about you using 'split' to cut it in say 1GB chunks, transfer, then cat it back together as a temporary workaround?
 
Old 01-26-2007, 11:10 AM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
You want rsync; it will complete the partial transfer as well. For example:

rsync -av --rsh='ssh' --progress --inplace someBigFile.data user@host:/somedirectory/someBigFile.data

As the file was partially transferred, rsync will determine where the differeces are correct any errors and resume the transfer. See 'man rsync' for additional details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scp "lost connection" retry carlh Linux - Newbie 4 07-16-2009 04:01 AM
SCP copying directories between servers astrollama Linux - Software 5 10-13-2006 03:10 AM
Strange scp issue while copying files gettons_slack Linux - Software 2 08-26-2006 06:33 AM
Strange scp issue while copying files gettons_slack Slackware 7 08-25-2006 02:53 PM
scp copying from Linux to windows richard3403 Linux - Networking 2 11-06-2003 07:31 AM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration