Lily Mara
Lily Mara

Reputation: 4138

Aria2 don't re-download file

I'm using aria2 to download a list of files that is dynamically generated. I want it to skip the files that are already in the download directory, but instead of doing this, it just re-downloads them and adds a .1 to the filename. I tried using --check-integrity=true, but that did not change the behavior. Is there a way to make it skip files that already exist?

Upvotes: 20

Views: 18873

Answers (2)

black_puppydog
black_puppydog

Reputation: 1000

According to this issue the way to go should be

--auto-file-renaming=false

If a control file (.aria2) exists then the download will resume, otherwise if no control file exists then since --allow-overwrite is false by default the file will not be re-downloaded.

Upvotes: 29

Shmuel H.
Shmuel H.

Reputation: 2546

Try adding --continue=true to your command.

According to the aria2c(1) man-page, -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.

Upvotes: 20

Related Questions