17

I am using GitBash and I am downloading a file greater than 10GB and it stopped halfway. I don't want to download the whole file again from start. How can I start the download from where it was stopped with SFTP? I have tried reget command it showed cannot download non-regular file.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992

1 Answers1

31

(Assuming, you are using OpenSSH sftp), use its reget command. It has the same syntax as the get, except that it starts a transfer from the end of an existing local file.

The same effect has -a switch to the get command or global command-line -a switch of sftp.


You need OpenSSH 6.3 and later for these features

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992