-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloader: resume interrupted downloads #99
Comments
I have a couple of musings.
|
Resuming of downloads
|
When one download a big 20 GB file, something can go wrong along the way, or the user can sleep or restart their machines. When this happens and user re-issues
download-file
command, this will start download again from zero, event though local directory already has parts of the file.The goal of this issue to resume interrupted downloads from the last good state.
How to reproduce:
The test record contains a big 20 GB file.
Now start a download and interrupt after a while:
and resume download from scratch again:
$ cernopendata-client download-files --recid 15007 --server http://localhost
The downloader should recognise already available
15007/exactly2lep.zip
file and should continue from there.Note that the user can interrupt download any number of times until successful completion.
The behaviour could be configurable by a new
--resume
option, for example:--resume
option, and if yes, then would continue from that point, and if no, it would ask the user whether resume or redownload is wanted.rm ...
on the given file if the user would like not to do resume, but rather redownload.CC @katilp
The text was updated successfully, but these errors were encountered: