Skip to main content

How to do resumable downloads with curl

  • Posted
  • Updated

You want the --continue-at - flag, which will resume the transfer from the size of the already-downloaded file.

Here’s an example of using it to download a large file:

curl \
   --location \
   --remote-name \
   --continue-at - \
   https://dumps.wikimedia.org/other/wikibase/commonswiki/20231009/commons-20231009-mediainfo.json.bz2

It behaves in a “sensible” way at the beginning and end of the download: