--retry
option you can tell curl to retry certain failed transfers.--retry-delay
you can disable this exponential backoff algorithm and set your own delay between the attempts. With --retry-max-time
you cap the total time allowed for retries. The --max-time
option will still specify the longest time a single of these transfers is allowed to spend.--retry-connrefused
for this.ECONNREFUSED
a reason for retry:--retry-all-errors
makes curl treat all transfers failures as reason for retry.