How to download using command line tools with a secondary (backup) source?
0
votes
1
answer
80
views
I use
wget
, rsync
and curl
to download files regularly (via https or ssh). One issue when I travel is that servers that are fast to access in one region become slow (or even inaccessible) in another. My current strategy is to use mirrors and switch to mirrors that are local to each region.
I was wondering if there are Unix commandline tools that allow downloading a file from multiple mirrors as the source. The mirrors do not have to be used in parallel. They are used as backups, and the fastest one is used if the connection is lost.
The command line should look like:
xxget url1 url2
-- Update --
As pointed out by the accepted answer, the aria2c documentation has an example that does exactly this:
Download from 2 sources:
$ aria2c http://a/f.iso ftp://b/f.iso
Asked by tinlyx
(1072 rep)
Oct 1, 2023, 04:57 AM
Last activity: Oct 1, 2023, 03:03 PM
Last activity: Oct 1, 2023, 03:03 PM