I’m using the scp command to copy a 7.5 GB file to a distant server. File transfer breaks down at some point, and I have to restart from the beginning.
Is the temporary quantity of data being sent gone forever? Is it possible to begin the transfer from where it ended during the prior attempt? If not, is there a standard Unix command line file transfer command that can be used to accomplish this?
Asked by Matko
Try rsync if you need to resume a scp transfer from local to remote:
rsync --partial --progress --rsh=ssh local_file user@host:remote_file
@aurelijus-rozenas pointed out a short version:
rsync -P -e ssh local_file user@host:remote_file
In general, the args for rsync are in this order:
rsync [options] SRC DEST
Answered by Tom McClure
This is all you’ll require.
rsync -e ssh file host:/directory/.
Answered by DigitalRoss
Post is based on https://stackoverflow.com/questions/20860896/is-there-a-way-to-continue-broken-scp-secure-copy-command-process-in-linux