How to maintain directory structure using aria2?

I need to upload files at the same time - wget does not support this, so I want to try aria2. But I do not see the possibility in aria2 to maintain the directory structure.

+4
source share
1 answer

Define the directory structure first, then create and use the download description file:

aria2c -i uri.txt

where uri.txtmay contain

http://serverA/file1.iso http://mirror-serverB/file1.iso
# parameters must begin with a space, otherwise it 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 utility, not a synchronization like rsync or lftp.

Link to the answer rsync: fooobar.com/questions/1572944 / ... and the lftpanswer: https://superuser.com/a/305236 .

+6
source

All Articles