20120716

Resume scp transfer AAARRRGGGG

Had to upload a big file (300MB yeah its a big file for the kind of connection we have down here) to a remote server via scp. When it reached like 50% (1 hour after initiated) the connection drops!!! DAMN!

So after some research i found this :
rsync --partial --progress my_local_file.gz --rsh ssh user@server:my_remote_file.gz

yessss!!

If your ssh connection needs to use a port you can use
rsync --partial --progress my_local_file.gz --rsh 'ssh -pMY_PORT' user@server:my_remote_file.gz

No hay comentarios.:

Publicar un comentario