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?
Asked
Active
Viewed 1.4k times
18

Lily Mara
- 3,859
- 4
- 29
- 48
-
1Doesn't this question belong to superuser? – Shmuel H. Nov 12 '16 at 21:05
-
I suppose it could, but there are even fewer aria2 questions on superuser than there are on SO. – Lily Mara Nov 12 '16 at 21:07
-
1BTW, use the `--continue[=true]` option to resume downloads. – Shmuel H. Nov 12 '16 at 21:07
-
@ShmuelH. That is exactly what I wanted! Thanks! – Lily Mara Nov 12 '16 at 21:08
-
Has using `--continue=true` resolved your problem? If yes, I suggest @Shmuel to post it as the answer. – Alexey Ivanov Nov 25 '16 at 19:25
2 Answers
25
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.

black_puppydog
- 950
- 13
- 21
17
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.

Shmuel H.
- 2,348
- 1
- 16
- 29
-
Does this have the potential of downloading the whole site all over again? How does it figure out if a download is partial or full? Wouldn't it have to compare with the remote version? – Daniel Kaplan Mar 24 '22 at 23:25