Alright Linux gurus, I've spent the past hour attempting to understand what's going on here and just need help.
scp -rB LOCAL_DIRECTORY REMOTE_USERNAME@REMOTE_SERVER_NAME:~
Permission denied (publickey,gssapi-with-mic,password).lost connection
5/22/2009 9:52:14 AM
Fuck, nevermind, meant to use C instead of B#Delete thread if you want
5/22/2009 9:54:09 AM
Due to a wonderfully crappy internet connection at the office (AT&T can blow me) I've had to restart the copy twice now.Any ideas on how to make my session stay logged on the machine to do the copy?Or maybe restart without overwriting files?
5/22/2009 1:02:09 PM
http://yyab.wordpress.com/2006/12/18/resume-a-large-scp-transfer/
5/22/2009 1:30:15 PM
http://www.google.com/search?q=how+to+use+screen
5/22/2009 2:56:35 PM
^winner
5/22/2009 2:57:50 PM
just put an ampersand after the command... likescp -rB LOCAL_DIRECTORY REMOTE_USERNAME@REMOTE_SERVER_NAME:~ &
5/22/2009 3:21:00 PM
^ that makes the process run in the background but it doesn't detach it from your login. fail.
5/22/2009 8:46:18 PM
indeed, what you're thinking of is probably nohupbut I'm not sure making it persistent will help if the connection between the two machines involved in the copy is being interruptedif that's the case you probably want to use sftp or rsync. rsync can take quite a while to actually begin transferring data if the files in question are large (tens of GB), so depending on how frequently the connection is interrupted sftp may be the better choice.[Edited on May 22, 2009 at 11:42 PM. Reason : .]
5/22/2009 11:37:45 PM
scp should be returning an errorcode if it fails. put it in a loop; profit?or use tftp. definitely. live on the edge, that's how i roll.
5/23/2009 12:37:53 AM
rsync FTW
5/23/2009 12:53:04 AM