如何使用 aria2 保持目录结构?

2024-02-02

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


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

aria2c -i uri.txt

where 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 https://stackoverflow.com/a/4147263/1163786 and an lftp回答:https://superuser.com/a/305236 https://superuser.com/a/305236.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何使用 aria2 保持目录结构? 的相关文章

随机推荐