Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to seed only with aria2?

I build a little tool (IoT) with an Intel Compute Stick which downloads a torrent content and then seed it.

And it works.

Now I want to seed the files I have downloaded EVEN after a restart and without re-downloading them (for obvious reasons...)

There is no way to do it with any option on aria2 (here is the doc) and I want to know if there is a trick I can do or any other COMMAND LINE application that can do it ?

like image 435
Victor Castro Avatar asked Oct 19 '16 08:10

Victor Castro


People also ask

How does aria2 check seed ratio?

And aria2 actually checks how many bytes are uploaded against completed size (this seed ratio check gets started when torrent download finished, so completed size == total file size. This may not be true if --select-file is used, and partial downloads are done).

What is aria2 and how to use it?

aria2 is a utility for downloading files. The supported protocols are HTTP (S), FTP, SFTP, BitTorrent, and Metalink. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth.

Why aria2 could not parse a torrent file?

If aria2 could not parse bencoded file (usually ".torrent" file). If ".torrent" file was corrupted or missing information that aria2 needed. If Magnet URI was bad. If bad/unrecognized option was given or unexpected option argument was given. If the remote server was unable to handle the request due to a temporary overloading or maintenance.

How does aria2 optimize the number of concurrent downloads?

Optimizes the number of concurrent downloads according to the bandwidth available. aria2 uses the download speed observed in the previous downloads to adapt the number of downloads launched in parallel according to the rule N = A + B Log10 (speed in Mbps).


2 Answers

It looks like you can do this with the -V option, although it does not look to be very well documented. From this web page:

You can seed downloaded file using -V option. This will first check piece hashes for the downloaded file.

aria2c -V -d/path/to/dir file.torrent

I'd suggest also adding --seed-ratio=0.0 so that you'll seed the file forever:

aria2c -V --seed-ratio=0.0 -d/path/to/dir file.torrent
like image 145
dustymabe Avatar answered Oct 07 '22 03:10

dustymabe


I understand that it's an old question, but in case someone (like me) finds it -

The -V options works just fine, but if you do not want to verify all files before seeding you can instead use --bt-seed-unverified. Official documentation.

For example, consider the following folder structure:

  • torrents data
    • .torrent files

To seed torrents you can use this command from directory with .torrent files:
ls | aria2c --bt-seed-unverified --seed-ratio=0.0 -d "../" -i -

like image 42
Heniker Avatar answered Oct 07 '22 01:10

Heniker