user8927198
user8927198

Reputation:

How to resume failed/interrupted downloads with SFTP?

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.

Upvotes: 24

Views: 21602

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202222

(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.


Similarly for resuming an upload, use reput command.


You need OpenSSH 6.3 and later [on the client side] for these features.

Upvotes: 42

Related Questions