When downloading a file over a problematic connection, wget
fails, and retries. However, it retries from zero, throwing away the previously downloaded part of the file.
$ wget https://www.example.com/file
file 8%[========> ] 2,45M 78,9KB/s in 32s
2020-04-01 15:09:18 (78,9 KB/s) - Connection closed at byte 2965504. Retrying.
file 97%[====================================================================================================> ] 27,09M 50,8KB/s in 7m 12s
2020-04-01 15:16:31 (64,3 KB/s) - Connection closed at byte 28409856. Retrying.
file 3%[===> ] 1,09M 23,2KB/s in 48s
and so on
How do I get it to restart from where it got to, instead of starting from zero? I tried
wget -c --retry-connrefused
, but got the same behavior.