4

我需要同时下载文件 - wget 不支持,所以我想尝试 aria2。但我在 aria2 中没有看到保留目录结构的选项。

4

1 回答 1

8

先确定目录结构,然后构建并使用下载描述文件:

aria2c -i uri.txt

哪里uri.txt可能包含

http://serverA/file1.iso http://mirror-serverB/file1.iso
# parameters must begin with a space, otherwise it's treatened as url!
 dir=/downloads/a
# not mandatory
 out=file1.iso

http://serverA/file2.iso http://mirror-serverB/file2.iso
 dir=/downloads/b
 out=file2.iso

请记住,aria2 是一个下载工具 - 而不是同步工具,如 rsync 或 lftp。

参考rsync答案:https ://stackoverflow.com/a/4147263/1163786 和lftp答案:https ://superuser.com/a/305236 。

于 2015-02-17T01:41:50.847 回答