Continue after a broken SCP connection

Problem:

You transfer a file to a remote computer via scp:

scp my_favourite_file.tar.gz user@192.168.16.2:~

But before the transfer is completed the connection is broken.
How can I continue the transfer from the point it broke?

Solution:


rsync -P -e ssh my_favourite_file.tar.gz user@192.168.16.2:~

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s