How to resume a stalled scp transfer

SCP is the perfect command line tool to transfer huge files from a server to another one but if the connection drops, the transfer become “stalled” and seems impossible to resume. Don’t panic, rsync allow us to resume a failed scp transfer :


rsync --partial --progress --rsh=ssh user@server:path/my_fileĀ /home/my_file