How to keep directory structure with aria2?

放肆的年华 提交于 2019-12-03 08:38:35
Jens A. Koch

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.

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