How to resume download over SSH using "rsync"
October 30, 2018 Comments
This is one of those "note to self" again.
I needed to download big file (close to 6GB) from a remote server last night but the Internet connection at my AirBnB was a bit spotty and would drop periodically.
Normally, I'd just use scp and even 6GB of data is no big deal on a fast and stable connection. But with a slow or unstable connection, I needed a way to resume the download.
The solution is good, old rsync over an SSH connection:
rsync -P -e ssh user@myserver.mydomain.com:/remote/path /local/path
Or if you use an identity file:
rsync -P -e "ssh -i ~/.ssh/company_id_rsa" ubuntu@myserver.mydomain.com:/remote/path /local/path
Happy downloading!