12

I have a partially downloaded file with aria2. Next to it, is a file with the same name end with .aria2.
I don't know the download link. I only have these two files. I want to know how could I resume download in this situation.

Note: *.aria2 is created along side the download file and remains until the download finishes.

  • I apologize - my answer only works if you do know the url. So I've deleted it. Without it though, I don't think your chances are very good - but hopefully I'm wrong. – mikeserv Jul 11 '14 at 22:44
  • 2
    @mikeserv don't do that put it back. just mention that It is for when you have the URL. It is useful stuff – r004 Jul 11 '14 at 23:10
9

Depending on the download type, you should use either or both of the following two options:

aria2c --continue=true \
    --input-file=${path_to_./aria2_script}

But, you will apparently need the url for the download with both options. As far as I can tell, you cannot resume a download without it. I'm sorry this couldn't be better help, but the docs are here. These options are described thus:

-i, --input-file=<FILE>

Downloads URIs found in FILE. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character. Reads input from stdin when - is specified. Additionally, options can be specified after each line of URI. This optional line must start with one or more white spaces and have one option per single line. The input file can use gzip compression. See Input File subsection for details. See also --deferred-input option.

-c, --continue[=true|false]

Continue downloading a partially downloaded file. Use this option to resume a download started by a web browser or another program which downloads files sequentially from the beginning. Currently this option is only applicable to HTTP(S)/FTP downloads.

  • I couldn't make it work. if the *.aria2 is in ~/downloads how should I precede? – r004 Jul 11 '14 at 19:37
  • 2014-07-12 01:05:00.799659 ERROR - Unrecognized URI or unsupported protocol: ��� No files to download. – r004 Jul 11 '14 at 20:35
  • 2
    Oh; that is not the answer; it reads a file for example a .txt one and look inside for URL(s) to download. we are talking about *.aria file; the file which is created along side the download file and remains until the download finishes. – r004 Jul 11 '14 at 21:28
  • @r004 - as you requested, I restored the answer. But I don't like it... – mikeserv Jul 13 '14 at 1:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.