Skip to main content

How to do resumable downloads with curl

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

Here’s an example of using it in practice.

curl \
   --location \
   --remote-name \
   --continue-at - \

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