EIP = 0x41414141

hacking, reversing and other stuff

How to Resume a Scp Transfer

You may had the situation yourself, you have a huge file beeing transfered via scp and suddenly the connection drops. It would be cool if one could resume the transfer, so you do not have to transfer the whole file again but only what is missing on your end.

You can do that with rsync.

For example you did run the follwoing scp command:

1
scp bob@aliceserver.org:/data/huge.tar.gz

Then you can resume the transfer with rsync like this:

1
rsync -P -rsh=ssh bob@aliceserver.org:/data/huge.tar.gz ./huge.tar.gz

Cool, isn’t it?