How to keep directory structure with aria2?

我的梦境 提交于 2019-12-04 14:31:48

问题


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.


回答1:


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

aria2c -i uri.txt

where uri.txt might contain

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

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

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



来源:https://stackoverflow.com/questions/28202905/how-to-keep-directory-structure-with-aria2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!