mina-sshd
mina-sshd copied to clipboard
How to implement SFTP resuming transfer using mina-sshd?
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?
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...