Resume a broken download with curl or wget

The 8 GB ISO died at 97%. Don't start over.

SNP 096 #163 Filed cmd linux

shell
wget -c https://example.com/big.iso

-c continues where the partial file ends. The same with curl:

shell
curl -C - -O https://example.com/big.iso

-C - tells curl to work out the offset from the file on disk, -O keeps the remote file name. Both only work if the server supports range requests, which almost all do.

For something that keeps dropping, wget -c --tries=0 --retry-connrefused retries until it's done.