18

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?

Lily Mara
  • 3,859
  • 4
  • 29
  • 48

2 Answers2

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