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.
Asked
Active
Viewed 1.5k times
1 Answers
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
-
4in case anyone wondering how to do it with failed upload `reput
` – Atif Shafi Mar 14 '22 at 17:01 -
To download recursively, `reget -R` or `get -aR` – Constantin Hong Aug 30 '23 at 18:53