scp resume

Do you know this problem. You are copying a large file via scp to a server and than the connection is lost. Actually you can resume the scp prozess for the file. This is for copying a file from a server to your machine.

rsync --partial --progress --rsh=ssh user@host:remote_file local_file

and this is for copying a file from your machine to a server:

rsync --partial --progress --rsh=ssh local_file user@host:remote_file

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s