#11 Remember download url in .aria2 file



i'm not sure what is currently stored in the .aria2 file that accompanies a
download, but it'd be nice if it could remember the download link


you could start downloading something with

$ aria2c http://www.google.co.uk/google_linux.iso

let it download for a while and then put your laptop to standby

then you could later come back to your terminal and just type

$ aria2c google_linux.iso
$ aria2c google_linux.iso.aria2

and it would automatically connect to the previous url and resume the
download (this is useful if you happen to find something at a long url)


  • tujikawa

    tujikawa - 2006-08-28

    Logged In: YES

    I agree this is useful.
    I'm thinking of storing all command-line options specified
    along with URLs.

  • Ant Bryan

    Ant Bryan - 2007-03-30

    Logged In: YES
    Originator: NO

    I second that, it sounds extremely convenient.

    If you close a terminal and can't scroll back to see the URL used...There are just so many situations where it could be nice. Storing the options would be very nifty as well.

  • tujikawa

    tujikawa - 2007-04-03

    Logged In: YES
    Originator: NO

    I'm now thinking about the specification for this feature.

    *.aria2 file will contain URL along with option values specified in the previous download.
    I'm thinking command-line interface like this:

    $ aria2c -r filename.aria2

    It retrieves URL and option values from filename.aria2 file.
    It can be possible to overload saved options by specifying command-line options:

    $ aria2c -r filename.aria2 --http-proxy hostname:8080

    This overloads http proxy setting.

    The order of precedence for option setting is as follows:
    1. command-line
    2. *.aria2
    3. aria2.conf

  • Ant Bryan

    Ant Bryan - 2007-04-03

    Logged In: YES
    Originator: NO

    That would be good to override options in .aria2 if things change.

    Will *.aria2 file contain all the URLs used?

    Will it include information from .torrents (checksums) or .metalinks (checksums and URLs), or will those files be referenced in the .aria2 file?

  • tujikawa

    tujikawa - 2007-04-06

    Logged In: YES
    Originator: NO

    It's a good idea to include Metalink and torrent in .aria2 file.

    Download is started:
    aria2c -M foo.metalink

    We can resume download by doing like this:
    aria2c -r foo.metalink.files.aria2

    We cannot use "foo.metalink.aria2" here because it is the .aria2
    file of "foo.metalink" itself.

  • Ant Bryan

    Ant Bryan - 2007-04-13

    Logged In: YES
    Originator: NO

    I see what you mean. I had not thought of it.

    That would be far easier! When a metalink lists a collection of files, you will be able to resume all the files with one command instead of having to individually resume the download of each file listed in the .metalink.

    And it makes sense that "foo.metalink.aria2" would be the resume file just for the .metalink itself, if the download had been interrupted and was incomplete.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks