mina-sshd icon indicating copy to clipboard operation
mina-sshd copied to clipboard

How to implement SFTP resuming transfer using mina-sshd?

Open G-Fantastic opened this issue 2 years ago • 1 comments

In certain situations, network interruptions might lead to transfer interruptions. I'd like to avoid restarting file upload or download and instead resume from where it was interrupted. How can this be achieved using mina-sshd?

G-Fantastic avatar Jan 02 '24 05:01 G-Fantastic

Simple

  • Remember the last offset that you have successfully uploaded/downloaded
  • Re-establish the client connection
  • Re-open the relevant file handle
  • Seek to the specified last offset
  • Continue uploading/downloading...

lgoldstein avatar Feb 19 '24 16:02 lgoldstein