]> Cypherpunks.ru repositories - nncp.git/blob - doc/integration/bittorrent.texi
841391e5933fab304360d0b611c7885d8ba0b20d
[nncp.git] / doc / integration / bittorrent.texi
1 @node BitTorrent
2 @section BitTorrent and huge files
3
4 If dealing with @ref{Git}, @ref{Feeds, web feeds} and @ref{Multimedia,
5 multimedia} goes relatively fast, then BitTorrent and huge files
6 consumes much time. You can not wait for downloads finish, but want to
7 queue them after.
8
9 @url{http://aria2.github.io/, aria2} multi-protocol download utility
10 could be used for solving that issue conveniently. It supports HTTP,
11 HTTPS, FTP, SFTP and BitTorrent protocols, together with
12 @url{http://tools.ietf.org/html/rfc5854, Metalink} format. BitTorrent
13 support is fully-featured: UDP trackers, DHT, PEX, encryption, magnet
14 URIs, Web-seeding, selective downloads, LPD. @command{aria2} can
15 accelerate HTTP*/*FTP downloads by segmented multiple parallel
16 connections.
17
18 You can queue you files after they are completely downloaded.
19 @file{aria2-downloaded.sh} contents:
20
21 @verbatiminclude aria2-downloaded.sh
22
23 Also you can prepare
24 @url{http://aria2.github.io/manual/en/html/aria2c.html#files, input file}
25 with the jobs you want to download:
26
27 @example
28 $ cat jobs
29 http://www.nncpgo.org/download/nncp-0.11.tar.xz
30     out=nncp.txz
31 http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig
32     out=nncp.txz.sig
33 $ aria2c \
34     --on-download-complete aria2-downloaded.sh \
35     --input-file jobs
36 @end example
37
38 and all that downloaded (@file{nncp.txz}, @file{nncp.txz.sig}) files
39 will be sent to @file{remote.node} when finished.