本文介绍了如何使用aria2保持目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要同时下载文件-wget不支持该文件,因此我想尝试aria2.但是我看不到aria2中保留目录结构的选项.

I need to download files simultaneously- wget doesn't support that so I want to try aria2. But I don't see an option in aria2 to keep directory structure.

推荐答案

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

Determine the directory structure first,then build and use a download description file:

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之类的同步实用程序.

Keep in mind that aria2 is a download util - not an sync util, like rsync or lftp.

引用rsync答案: https://stackoverflow.com/a/4147263/1163786 lftp答案: https://superuser.com/a/305236 .

Referencing an rsync answer: https://stackoverflow.com/a/4147263/1163786and an lftp answer: https://superuser.com/a/305236.

这篇关于如何使用aria2保持目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-08 00:53