[XCSSA] Re: [SATLUG] Resuming a failed scp session...

xcssa@xcssa.org xcssa@xcssa.org
Tue, 10 Jul 2007 16:06:47 -0500


On Monday 09 July 2007 00:16, Don Wright wrote:
> On Sun, 8 Jul 2007 02:38:52 -0500, tom weeks <tweeksjunk2@theweeks.org> 
wrote:
> >If you initially did your scp via:
> >	scp -rp ./local/dir user@remotehost:/path/to/remote/file
> >
> >Then just pick up where you left off using:
> >	rsync --partial -av ./local/file user@remotehost:/path/to/remote/file
>
> Everyone does know about screen(1), right? How it can keep a remote session
> going despite the loss of the original scp link, and allow reconnection to
> work in progress after the link is re-established?

Different problem.  
I was scp PUSHING files up to my web server.. The RR connection dropped with 
locked up the running scp protocol session.  rsync was a good way to "pick it 
back up" and continue the copy.

What you're talking about is being shelled into a place (like my web server) 
and having screen keep & hold my shell session for me.  And yes.. losing my 
ssh session to my server THEN is saved by using screen. I use screen on my 
server to.  You can literally he in editing a live HTML file.. lose 
connections.. and just ssh back in and <poof>, you're still in the vi editor 
right where you left off.  Yes.. very nice.  If any of you use ssh a lot and 
are not familiar with screen.. it's a god send.  I even invoke it from 
my .bash_rc so that automatically re-connects to existing screen sessions. :)  
Simple & effective.  Maybe I should do a session on that at XCSSA...  

Tweeks