[XCSSA] Resuming a failed scp session...

xcssa@xcssa.org xcssa@xcssa.org
Sun, 8 Jul 2007 02:38:52 -0500


Native to scp.. this can't be done.  A real pain if you're in the middle of a  
big, recursive scp upload with a bunch of image files to your web photo share 
or fileserver... lemme tell ya.  

Just discovered an easy work around for this after my RR hiccuped and my scp 
session locked up on me.  In short, just continue by using rsync (over 
ssh)! :)

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

NOTE: Just be sure to leave off the trailing "/" on rsync's dir name... 
otherwise it interprets this to mean "copy contents, not the dir too". ;)

Real time saver though!

Tweeks