aria2c.1.txt 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. ARIA2C(1)
  2. =========
  3. Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. NAME
  5. ----
  6. aria2c - The ultra fast download utility
  7. SYNOPSIS
  8. --------
  9. aria2c ['OPTIONS'] ['URL' | 'TORRENT_FILE' | 'METALINK_FILE']...
  10. DESCRIPTION
  11. -----------
  12. aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP, BitTorrent, and Metalink. It can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. It supports downloading a file from HTTP(S)/FTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's chunk checksums, aria2 automatically validates chunks of data while downloading a file like BitTorrent.
  13. OPTIONS
  14. -------
  15. Basic Options
  16. ~~~~~~~~~~~~~
  17. *-d*, *--dir*=DIR::
  18. The directory to store the downloaded file.
  19. *-i*, *--input-file*=FILE::
  20. Downloads URIs found in FILE. You can specify multiple URIs for a single
  21. entity: separate URIs on a single line using the TAB character.
  22. Reads input from stdin when '-' is specified.
  23. *-l*, *--log*=LOG::
  24. The file name of the log file. If '-' is specified, log is written to
  25. stdout.
  26. *-j*, *--max-concurrent-downloads*=N::
  27. Set maximum number of parallel downloads for every static (HTTP/FTP) URL,
  28. torrent and metalink.
  29. Default: '5'
  30. *--check-integrity*='true'|'false'::
  31. Check file integrity by validating piece hash.
  32. This option only affects in BitTorrent downloads and Metalink downloads with
  33. chunk checksums.
  34. Use this option to re-download a damaged portion of a file.
  35. Default: 'false'
  36. *-c*, *--continue*::
  37. Continue downloading a partially downloaded file.
  38. Use this option to resume a download started by a web browser or another
  39. program which downloads files sequentially from the beginning.
  40. Currently this option is only applicable to HTTP(S)/FTP downloads.
  41. *-h*, *--help*[=CATEGORY]::
  42. Print usage and exit.
  43. The help messages are classified in several categories.
  44. For example, type "*--help*=http" for detailed explanation for the options
  45. related to HTTP. If no matching category is found, search option name using
  46. a given word in middle match and print the result.
  47. Available Values: 'basic', 'advanced', 'http', 'ftp', 'metalink',
  48. 'bittorrent', 'all'
  49. Default: 'basic'
  50. HTTP/FTP Options
  51. ~~~~~~~~~~~~~~~~
  52. *--all-proxy*=PROXY::
  53. Use this proxy server in the all protocols.
  54. You can override this setting and specify a proxy server for particular
  55. proctol using *--http-proxy*, *--https-proxy* and *--ftp-proxy* options.
  56. This affects all URLs.
  57. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  58. *--connect-timeout*=SEC::
  59. Set the connect timeout in seconds to establish connection to
  60. HTTP/FTP/proxy server. After the connection is established, this
  61. option makes no effect and *--timeout* option is used instead.
  62. Default: '60'
  63. *--lowest-speed-limit*=SPEED::
  64. Close connection if download speed is lower than or equal to this
  65. value(bytes per sec).
  66. '0' means aria2 does not have a lowest speed limit.
  67. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  68. This option does not affect BitTorrent downloads.
  69. Default: '0'
  70. *--max-file-not-found*=NUM::
  71. If aria2 recieves `file not found' status from the remote HTTP/FTP
  72. servers NUM times without getting a single byte, then force the
  73. download to fail. Specify '0' to disable this option. This options is
  74. only effective only when using HTTP/FTP servers.
  75. Default: '0'
  76. *-m*, *--max-tries*=N::
  77. Set number of tries. '0' means unlimited.
  78. Default: '5'
  79. *--no-proxy*=DOMAINS::
  80. Specify comma separated hostnames or domains to which proxy should not be
  81. used.
  82. *-o*, *--out*=FILE::
  83. The file name of the downloaded file.
  84. *--proxy-method*=METHOD::
  85. Set the method to use in proxy request.
  86. 'METHOD' is either 'get' or 'tunnel'.
  87. Default: 'tunnel'
  88. [NOTE]
  89. In Metalink, BitTorrent download you cannot specify file name.
  90. The file name specified here is only used when the URLs fed to aria2
  91. is done by command line without *-i*, *-Z* option, like this:
  92. aria2c -o myfile.zip http://mirror1/file.zip http://mirror2/file.zip
  93. *-R*, *--remote-time*[='true'|'false']::
  94. Retrieve timestamp of the remote file from the remote HTTP/FTP
  95. server and if it is available, apply it to the local file.
  96. Default: 'false'
  97. *--retry-wait*=SEC::
  98. Set the seconds to wait to retry after an error has occured.
  99. Specify a value between '0' and '60'.
  100. Default: '5'
  101. *--server-stat-of*=FILE::
  102. Specify the filename to which performance profile of the servers is
  103. saved. You can load saved data using *--server-stat-if* option. See
  104. SERVER PERFORMANCE PROFILE section below for file format.
  105. *--server-stat-if*=FILE::
  106. Specify the filename to load performance profile of the servers. The
  107. loaded data will be used in some URI selector such as 'feedback'.
  108. See also *--uri-selector* option. See SERVER PERFORMANCE PROFILE
  109. section below for file format.
  110. *--server-stat-timeout*=SEC::
  111. Specifies timeout in seconds to invalidate performance profile of
  112. the servers since the last contact to them.
  113. Default: '86400' (24hours)
  114. *-s*, *--split*=N::
  115. Download a file using N connections.
  116. If more than N URLs are given, first N URLs are used and remaining URLs are
  117. used for backup.
  118. If less than N URLs are given, those URLs are used more than once so that N
  119. connections total are made simultaneously.
  120. N must be between '1' and '16'. Please see *-j* option too.
  121. Default: '5'
  122. *-t*, *--timeout*=SEC::
  123. Set timeout in seconds.
  124. Default: '60'
  125. *--uri-selector*=SELECTOR::
  126. Specify URI selection algorithm. Possible values are 'inorder' and
  127. 'feedback'. If 'inorder' is given, URI is tried in the order
  128. appeared in the URI list. If 'feedback' is given, aria2 uses
  129. download speed observed in the previous downloads and choose fastest
  130. server in the URI list. This also effectively skips dead
  131. mirrors. The observed download speed is a part of performance
  132. profile of servers mentioned in *--server-stat-of* and
  133. *--server-stat-if* options.
  134. Default: 'inorder'
  135. HTTP Specific Options
  136. ~~~~~~~~~~~~~~~~~~~~~
  137. *--ca-certificate*=FILE::
  138. Use the certificate authorities in FILE to verify the peers.
  139. The certificate file must be in PEM format and can contain multiple CA
  140. certificates.
  141. Use *--check-certificate* option to enable verification.
  142. *--certificate*=FILE::
  143. Use the client certificate in FILE.
  144. The certificate must be in PEM format.
  145. You may use *--private-key* option to specify the private key.
  146. *--check-certificate*[='true'|'false']::
  147. Verify the peer using certificates specified in *--ca-certificate* option.
  148. *--http-auth-scheme*=SCHEME::
  149. Set HTTP authentication scheme.
  150. Currently, 'basic' is the only supported scheme.
  151. Default: 'basic'
  152. *--http-user*=USER::
  153. Set HTTP user. This affects all URLs.
  154. *--http-passwd*=PASSWD::
  155. Set HTTP password. This affects all URLs.
  156. *--http-proxy*=PROXY::
  157. Use this proxy server for HTTP. See also *--all-proxy* option.
  158. This affects all URLs.
  159. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  160. *--https-proxy*=PROXY::
  161. Use this proxy server for HTTPS. See also *--all-proxy* option.
  162. This affects all URLs.
  163. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  164. *--private-key*=FILE::
  165. Use the private key in FILE.
  166. The private key must be decrypted and in PEM format.
  167. See also *--certificate* option.
  168. *--referer*=REFERER::
  169. Set Referer. This affects all URLs.
  170. *--enable-http-keep-alive*[='true'|'false']::
  171. Enable HTTP/1.1 persistent connection.
  172. Default: 'true'
  173. *--enable-http-pipelining*[='true'|'false']::
  174. Enable HTTP/1.1 pipelining.
  175. Default: 'false'
  176. *--header*=HEADER::
  177. Append HEADER to HTTP request header.
  178. You can use this option repeatedly to specify more than one header:
  179. aria2c *--header*="X-A: b78" *--header*="X-B: 9J1" http://host/file
  180. *--load-cookies*=FILE::
  181. Load Cookies from FILE using the Firefox3 format(SQLite3) and the
  182. Mozilla/Firefox(1.x/2.x)/Netscape format.
  183. [NOTE]
  184. If aria2 is build without libsqlite3, then it doesn't support Firefox3 cookie.
  185. *-U*, *--user-agent*=USER_AGENT::
  186. Set user agent for HTTP(S) downloads.
  187. FTP Specific Options
  188. ~~~~~~~~~~~~~~~~~~~~
  189. *--ftp-user*=USER::
  190. Set FTP user. This affects all URLs.
  191. Default: 'anonymous'
  192. *--ftp-passwd*=PASSWD::
  193. Set FTP password. This affects all URLs.
  194. Default: 'ARIA2USER@'
  195. *-p*, *--ftp-pasv*::
  196. Use passive mode in FTP.
  197. *--ftp-proxy*=PROXY::
  198. Use this proxy server for FTP. See also *--all-proxy* option.
  199. This affects all URLs.
  200. The format of PROXY is [\\http://][USER:PASSWORD@]HOST[:PORT]
  201. *--ftp-type*=TYPE::
  202. Set FTP transfer type. TYPE is either 'binary' or 'ascii'.
  203. Default: 'binary'
  204. *--ftp-reuse-connection*[='true'|'false']::
  205. Reuse connection in FTP.
  206. Default: 'true'
  207. *-n*, *--no-netrc*::
  208. Disables netrc support. netrc support is enabled by default.
  209. BitTorrent/Metalink Options
  210. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  211. *--select-file*=INDEX...::
  212. Set file to download by specifing its index.
  213. You can find the file index using the *--show-files* option.
  214. Multiple indexes can be specified by using ",", for example: '3,6'.
  215. You can also use "-" to specify a range: '1-5'.
  216. "," and "-" can be used together: '1-5,8,9'.
  217. When used with the -M option, index may vary depending on the query
  218. (see *--metalink-** options).
  219. [NOTE]
  220. In multi file torrent, the adjacent files specified by this option may
  221. also be downloaded. This is by design, not a bug.
  222. A single piece may include several files or part of files, and aria2
  223. writes the piece to the appropriate files.
  224. *-S*, *--show-files*::
  225. Print file listing of .torrent or .metalink file and exit.
  226. In case of .torrent file, additional information
  227. (infohash, piece length, etc) is also printed.
  228. BitTorrent Specific Options
  229. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  230. *--bt-max-open-files*=NUM::
  231. Specify maximum number of files to open in each BitTorrent download.
  232. Default: '100'
  233. *--bt-min-crypto-level*='plain'|'arc4'::
  234. Set minimum level of encryption method.
  235. If several encryption methods are provided by a peer, aria2 chooses a lowest
  236. one which satisfies the given level.
  237. Default: 'plain'
  238. *--bt-require-crypto*='true'|'false'::
  239. If true is given, aria2 doesn't accept and establish connection with legacy
  240. BitTorrent handshake(\19BitTorrent protocol).
  241. Thus aria2 always uses Obfuscation handshake.
  242. Default: 'false'
  243. *--bt-request-peer-speed-limit*=SPEED::
  244. In BitTorrent downloads, if the download speed is lower than SPEED,
  245. aria2 initiates and accepts connections ignoring max peer cap.
  246. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  247. Default: '51200'
  248. *--bt-seed-unverified*[='true'|'false']::
  249. Seed previously downloaded files without verifying piece hashes.
  250. Default: 'false'
  251. *--dht-entry-point*=HOST:PORT::
  252. Set host and port as an entry point to DHT network.
  253. *--dht-file-path*=PATH::
  254. Change the DHT routing table file to PATH.
  255. Default: '$HOME/.aria2/dht.dat'
  256. *--dht-listen-port*=PORT...::
  257. Set UDP listening port for DHT.
  258. Multiple ports can be specified by using ",", for example: '6881,6885'.
  259. You can also use "-" to specify a range: '6881-6999'. "," and "-" can be used
  260. together.
  261. Default: '6881-6999'
  262. *--direct-file-mapping*='true'|'false'::
  263. Directly read from and write to each file mentioned in .torrent file.
  264. Use this option if lots of files are listed in .torrent file and aria2
  265. complains it cannot open files anymore.
  266. Default: 'true'
  267. *--enable-dht*[='true'|'false']::
  268. Enable DHT functionality. If a private flag is set in a torrent, aria2
  269. doesn't use DHT for that download even if 'true' is given.
  270. Default: 'false'
  271. *--enable-peer-exchange*[='true'|'false']::
  272. Enable Peer Exchange extension. If a private flag is set in a torrent, this
  273. feature is disabled for that download even if 'true' is given.
  274. Default: 'true'
  275. *--follow-torrent*='true'|'false'|'mem'::
  276. If 'true' or 'mem' is specified, when a file whose suffix is ".torrent" or content
  277. type is "application/x-bittorrent" is downloaded, aria2 parses it as a torrent
  278. file and downloads files mentioned in it.
  279. If 'mem' is specified, a torrent file is not written to the disk, but is just
  280. kept in memory.
  281. If 'false' is specified, the action mentioned above is not taken.
  282. Default: 'true'
  283. *--listen-port*=PORT...::
  284. Set TCP port number for BitTorrent downloads.
  285. Multiple ports can be specified by using ",", for example: '6881,6885'.
  286. You can also use "-" to specify a range: '6881-6999'.
  287. "," and "-" can be used together: '6881-6889,6999'.
  288. Default: '6881-6999'
  289. [NOTE]
  290. Make sure that the specified ports are open for incoming TCP traffic.
  291. *--max-upload-limit*=SPEED::
  292. Set max upload speed in bytes per sec. '0' means unrestricted.
  293. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  294. Default: '0'
  295. *--peer-id-prefix*=PEERI_ID_PREFIX::
  296. Specify the prefix of peer ID. The peer ID in BitTorrent is 20 byte length.
  297. If more than 20 bytes are specified, only first 20 bytes are used.
  298. If less than 20 bytes are specified, the random alphabet characters are
  299. added to make it's length 20 bytes.
  300. Default: '-aria2-'
  301. *--seed-ratio*=RATIO::
  302. Specify share ratio. Seed completed torrents until share ratio reaches]
  303. RATIO.
  304. I strongly encourages you to specify equals or more than '1.0' here.
  305. Specify '0.0' if you intend to do seeding regardless of share ratio.
  306. If *--seed-time* option is specified along with this option, seeding ends when
  307. at least one of the conditions is satisfied.
  308. Default: '1.0'
  309. *--seed-time*=MINUTES::
  310. Specify seeding time in minutes. Also see the *--seed-ratio* option.
  311. *-T*, *--torrent-file*=TORRENT_FILE::
  312. The path to the .torrent file.
  313. You may not use this option because you can specify torrent file without -T.
  314. Metalink Specific Options
  315. ~~~~~~~~~~~~~~~~~~~~~~~~~
  316. *--follow-metalink*='true'|'false'|'mem'::
  317. If 'true' or 'mem' is specified, when a file whose suffix is ".metaink" or content
  318. type is "application/metalink+xml" is downloaded, aria2 parses it as a metalink
  319. file and downloads files mentioned in it.
  320. If 'mem' is specified, a metalink file is not written to the disk, but is just
  321. kept in memory.
  322. If 'false' is specified, the action mentioned above is not taken.
  323. Default: 'true'
  324. *-M*, *--metalink-file*=METALINK_FILE::
  325. The file path to .metalink file. You may not use this option because you can
  326. specify metalink file without -M.
  327. *-C*, *--metalink-servers*=NUM_SERVERS::
  328. The number of servers to connect to simultaneously.
  329. Some metalinks regulates the number of servers to connect.
  330. aria2 respects them.
  331. Default: '5'
  332. *--metalink-language*=LANGUAGE::
  333. The language of the file to download.
  334. *--metalink-location*=LOCATION[,...]::
  335. The location of the preferred server.
  336. A comma-deliminated list of locations is acceptable, for example, 'JP,US'.
  337. *--metalink-os*=OS::
  338. The operating system of the file to download.
  339. *--metalink-version*=VERSION::
  340. The version of the file to download.
  341. *--metalink-preferred-protocol*=PROTO::
  342. Specify preferred protocol.
  343. The possible values are 'http', 'https', 'ftp' and 'none'.
  344. Specifiy 'none' to disable this feature.
  345. Default: 'none'
  346. *--metalink-enable-unique-protocol*='true'|'false'::
  347. If 'true' is given and several protocols are available for a mirror in a
  348. metalink file, aria2 uses one of them.
  349. Use *--metalink-preferred-protocol* option to specify the preference of
  350. protocol.
  351. Default: 'true'
  352. Advanced Options
  353. ~~~~~~~~~~~~~~~~
  354. *--allow-overwrite*='true'|'false'::
  355. If 'false' is given, aria2 doesn't download a file which already exists but
  356. the corresponding .aria2 file doesn't exist.
  357. In HTTP(S)/FTP download, if *--auto-file-renaming*='true' then,
  358. file name will be renamed. See *--auto-file-renaming* for details.
  359. Default: 'false'
  360. *--allow-piece-length-change*='true'|'false'::
  361. If false is given, aria2 aborts download when a piece length is different
  362. from one in a control file.
  363. If true is given, you can proceed but some download progress will be lost.
  364. Default: 'false'
  365. *--async-dns*[='true'|'false']::
  366. Enable asynchronous DNS.
  367. Default: 'true'
  368. *--auto-file-renaming*[='true'|'false']::
  369. Rename file name if the same file already exists.
  370. This option works only in HTTP(S)/FTP download.
  371. The new file name has a dot and a number(1..9999) appended.
  372. Default: 'true'
  373. *--auto-save-interval*=SEC::
  374. Save a control file(*.aria2) every SEC seconds.
  375. If '0' is given, a control file is not saved during download. aria2 saves a
  376. control file when it stops regardless of the value.
  377. The possible values are between '0' to '600'.
  378. Default: '60'
  379. *--conf-path*=PATH::
  380. Change the configuration file path to PATH.
  381. Default: '$HOME/.aria2/aria2.conf'
  382. *-D*, *--daemon*::
  383. Run as daemon.
  384. *--enable-direct-io*[='true'|'false']::
  385. Enable directI/O, which lowers cpu usage while allocating/checking files.
  386. Turn off if you encounter any error.
  387. Default: 'false'
  388. *--file-allocation*=METHOD::
  389. Specify file allocation method. METHOD is either 'none' or 'prealloc'.
  390. 'none' doesn't pre-allocate file space. 'prealloc' pre-allocates file space
  391. before download begins. This may take some time depending on the size of the
  392. file.
  393. Default: 'prealloc'
  394. *--log-level*=LEVEL::
  395. Set log level to output.
  396. LEVEL is either 'debug', 'info', 'notice', 'warn' or 'error'.
  397. Default: 'debug'
  398. *--summary-interval*=SEC::
  399. Set interval in seconds to output download progress summary.
  400. Setting '0' suppresses the output.
  401. Default: '60'
  402. [NOTE]
  403. In multi file torrent, the files adjacent forward to the specified files
  404. are also allocated if they share a same piece.
  405. *-Z*, *--force-sequential*[='true'|'false']::
  406. Fetch URIs in the command-line sequentially and download each URI in a
  407. separate session, like the usual command-line download utilities.
  408. Default: 'false'
  409. *--max-download-limit*=SPEED::
  410. Set max download speed in bytes per sec. '0' means unrestricted.
  411. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  412. Default: '0'
  413. *--no-conf*::
  414. Disable loading aria2.conf file.
  415. *--no-file-allocation-limit*=SIZE::
  416. No file allocation is made for files whose size is smaller than SIZE.
  417. You can append 'K' or 'M'(1K = 1024, 1M = 1024K).
  418. Default: '5M'
  419. *-P*, *--parameterized-uri*[='true'|'false']::
  420. Enable parameterized URI support.
  421. You can specify set of parts: 'http://{sv1,sv2,sv3}/foo.iso'.
  422. Also you can specify numeric sequences with step counter:
  423. '\\http://host/image[000-100:2].img'.
  424. A step counter can be omitted.
  425. If all URIs do not point to the same file, such as the second example above,
  426. -Z option is required.
  427. Default: 'false'
  428. *-q*, *--quiet*[='true'|'false']::
  429. Make aria2 quite (no console output).
  430. Default: 'false'
  431. *--realtime-chunk-checksum*='true'|'false'::
  432. Validate chunk of data by calculating checkusm while download a file if
  433. chunk checksums are provided. Currently Metalink is the only way to to
  434. provide chunk checksums.
  435. Default: 'true'
  436. *--stop*=SEC::
  437. Stop application after SEC seconds has passed.
  438. If '0' is given, this feature is disabled.
  439. Default: '0'
  440. *-v*, *--version*::
  441. Print the version number, copyright and the configuration information and
  442. exit.
  443. URL, TORRENT_FILE, METALINK_FILE
  444. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  445. You can specify multiple URLs in command-line.
  446. Unless you specify *-Z* option, all URLs must point to the same file or downloading will fail.
  447. You can also specify arbitrary number of torrent files and metalink files
  448. stored in a local drive. Please note that they are always treated as a
  449. separate download.
  450. You can specify both torrent file with -T option and URLs. By doing this,
  451. download a file from both torrent swarm and HTTP(S)/FTP server at the same time,
  452. while the data from HTTP(S)/FTP are uploaded to the torrent swarm. Note that
  453. only single file torrent can be integrated with HTTP(S)/FTP.
  454. [NOTE]
  455. Make sure that URL is quoted with single(\') or double(") quotation if it
  456. contains "&" or any characters that have special meaning in shell.
  457. EXAMPLES
  458. --------
  459. HTTP/FTP Segmented Download
  460. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461. Download a file
  462. ^^^^^^^^^^^^^^^
  463. --------------------------------
  464. aria2c http://host/file.zip
  465. --------------------------------
  466. [NOTE]
  467. aria2 uses 5 connections to download 1 file by default.
  468. Download a file using 1 connection
  469. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  470. ----------------------------------
  471. aria2c -s1 http://host/file.zip
  472. ----------------------------------
  473. [NOTE]
  474. aria2 uses 5 connections to download 1 file by default.
  475. -s1 limtis the number of connections to just 1.
  476. [NOTE]
  477. To pause a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument at the same directory. You can change URLs as long as they are pointing to the same file.
  478. Download a file from 2 different HTTP servers
  479. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  480. --------------------------------------------------
  481. aria2c http://host/file.zip http://mirror/file.zip
  482. --------------------------------------------------
  483. Download a file from HTTP and FTP servers
  484. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  485. -------------------------------------------------
  486. aria2c http://host1/file.zip ftp://host2/file.zip
  487. -------------------------------------------------
  488. Download files listed in a file concurrently
  489. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  490. ------------------------
  491. aria2c -ifiles.txt -j2
  492. ------------------------
  493. [NOTE]
  494. -j option specifies the number of parallel downloads.
  495. Metalink Download
  496. ~~~~~~~~~~~~~~~~~
  497. Download files with remote Metalink
  498. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  499. ------------------------------------------------------
  500. aria2c --follow-metalink=mem http://host/file.metalink
  501. ------------------------------------------------------
  502. Download using a local metalink file
  503. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  504. ----------------------------------------------------------
  505. aria2c -p --lowest-speed-limit=4000 file.metalink
  506. ----------------------------------------------------------
  507. [NOTE]
  508. To pause a download, press Ctrl-C.
  509. You can resume the transfer by running aria2c with the same argument at the same
  510. directory.
  511. Download several local metalink files
  512. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  513. ----------------------------------------
  514. aria2c -j2 file1.metalink file2.metalink
  515. ----------------------------------------
  516. Download only selected files using index
  517. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  518. -------------------------------------------
  519. aria2c --select-file=1-4,8 file.metalink
  520. -------------------------------------------
  521. [NOTE]
  522. The index is printed to the console using -S option.
  523. Download a file using a local .metalink file with user preference
  524. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  525. ------------------------------------------------------------------------------
  526. aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
  527. ------------------------------------------------------------------------------
  528. BitTorrent Download
  529. ~~~~~~~~~~~~~~~~~~~
  530. Download files from remote BitTorrent file
  531. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  532. -------------------------------------------------------
  533. aria2c --follow-torrent=mem http://host/file.torrent
  534. -------------------------------------------------------
  535. Download using a local torrent file
  536. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  537. ---------------------------------------------
  538. aria2c --max-upload-limit=40K file.torrent
  539. ---------------------------------------------
  540. [NOTE]
  541. --max-upload-limit specifies the max of upload rate.
  542. [NOTE]
  543. To pause a download, press Ctrl-C. You can resume the transfer by run aria2c with the same argument at the same directory.
  544. Download 2 torrents
  545. ^^^^^^^^^^^^^^^^^^^
  546. --------------------------------------
  547. aria2c -j2 file1.torrent file2.torrent
  548. --------------------------------------
  549. Download a file using torrent and HTTP/FTP server
  550. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  551. -----------------------------------------------------------
  552. aria2c -Ttest.torrent http://host1/file ftp://host2/file
  553. -----------------------------------------------------------
  554. [NOTE]
  555. Downloading multi file torrent with HTTP/FTP is not supported.
  556. Download only selected files using index(usually called "selectable download")
  557. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  558. ---------------------------------------
  559. aria2c --select-file=1-4,8 file.torrent
  560. ---------------------------------------
  561. [NOTE]
  562. The index is printed to the console using -S option.
  563. Change the listening port for incoming peer
  564. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  565. ---------------------------------------------------
  566. aria2c --listen-port=7000-7001,8000 file.torrent
  567. ---------------------------------------------------
  568. [NOTE]
  569. Since aria2 doesn't configure firewall or router for port forwarding, it's up
  570. to you to do it manually.
  571. Specify the condition to stop program after torrent download finished
  572. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  573. -------------------------------------------------------
  574. aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
  575. -------------------------------------------------------
  576. [NOTE]
  577. In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
  578. Throttle upload speed
  579. ^^^^^^^^^^^^^^^^^^^^^
  580. ----------------------------------------------
  581. aria2c --max-upload-limit=100K file.torrent
  582. ----------------------------------------------
  583. Enable DHT
  584. ^^^^^^^^^^
  585. ---------------------------------------------------------
  586. aria2c --enable-dht --dht-listen-port=6881 file.torrent
  587. ---------------------------------------------------------
  588. [NOTE]
  589. DHT uses udp port. Since aria2 doesn't configure firewall or router for port
  590. forwarding, it's up to you to do it manually.
  591. More advanced HTTP features
  592. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  593. Load cookies
  594. ^^^^^^^^^^^^
  595. ------------------------------------------------------
  596. aria2c --load-cookies=cookies.txt http://host/file.zip
  597. ------------------------------------------------------
  598. [NOTE]
  599. You can use Firefox/Mozilla's cookie file without modification.
  600. Resume download started by web browsers or another programs
  601. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  602. ---------------------------------------------------
  603. aria2c -c -s2 http://host/partiallydownloadedfile.zip
  604. ---------------------------------------------------
  605. And more advanced features
  606. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  607. Throttle download speed
  608. ^^^^^^^^^^^^^^^^^^^^^^^
  609. -------------------------------------------------
  610. aria2c --max-download-limit=100K file.metalink
  611. -------------------------------------------------
  612. Repair a damaged download using --check-integrity option
  613. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  614. ----------------------------------------------
  615. aria2c --check-integrity=true file.metalink
  616. ----------------------------------------------
  617. [NOTE]
  618. This option is only available used with BitTorrent or metalink with chunk
  619. checksums.
  620. Drop connection if download speed is lower than specified value
  621. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  622. ------------------------------------------------
  623. aria2c --lowest-speed-limit=10K file.metalink
  624. ------------------------------------------------
  625. Parameterized URI support
  626. ^^^^^^^^^^^^^^^^^^^^^^^^^
  627. You can specify set of parts:
  628. ---------------------------------------------
  629. aria2c -P http://{host1,host2,host3}/file.iso
  630. ---------------------------------------------
  631. You can specify numeric sequence:
  632. -------------------------------------------
  633. aria2c -Z -P http://host/image[000-100].png
  634. -------------------------------------------
  635. [NOTE]
  636. -Z option is required if the all URIs don't point to the same file, such as the above example.
  637. You can specify step counter:
  638. -----------------------------------------
  639. aria2c -Z -P http://host/image[A-Z:2].png
  640. -----------------------------------------
  641. Parallel downloads of arbitrary number of URL,metalink,torrent
  642. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  643. ------------------------------------------------------------
  644. aria2c -j3 -Z http://host/file1 file2.torrent file3.metalink
  645. ------------------------------------------------------------
  646. BitTorrent Encryption
  647. ^^^^^^^^^^^^^^^^^^^^^
  648. Encrypt whole payload using ARC4:
  649. -------------------------------------------------------------------------
  650. aria2c --bt-min-crypto-level=arc4 --bt-require-crypto=true file.torrent
  651. -------------------------------------------------------------------------
  652. RESUME DOWNLOAD
  653. ---------------
  654. Usually, you can resume transfer by just issuing same command(aria2c URL)
  655. if the previous transfer is made by aria2.
  656. If the previous transfer is made by a browser or wget like sequencial
  657. download manager, then use -c option to continue the transfer(aria2c -c URL).
  658. CONTROL FILE
  659. ------------
  660. aria2 uses a control file to keep track the progress of download.
  661. A control file is placed at the same directory of the dowloading file and
  662. its filename is the filename of downloading file with ".aria2" appended.
  663. For example, if you are downloading file.zip, then the control file should be
  664. file.zip.aria2.
  665. (There is a exception for this naming convention.
  666. If you are downloading a multi torrent, its control file is the "top directory"
  667. name of the torrent with ".aria2" appended.
  668. The "top directory" name is a value of "name" key in "info" directory in a torrent file.)
  669. Usually a control file is deleted once download completed.
  670. If aria2 decides that download cannot be resumed(for example, when downloading
  671. a file from a HTTP server which doesn't support resume), a control file is
  672. not created.
  673. Normally if you lose a control file, you cannot resume download.
  674. But if you have a torrent or metalink with chunk checksums for the file,
  675. you can resume the download without a control file by giving
  676. --check-integrity=true option to aria2c in command-line.
  677. SEEDING DOWNLOADED FILE IN BITTORRENT
  678. -------------------------------------
  679. You can seed downloaded file using --check-integrity=true option.
  680. ---------------------------------------------
  681. aria2c --check-integrity=true file.torrent
  682. ---------------------------------------------
  683. SERVER PERFORMANCE PROFILE
  684. --------------------------
  685. This section describes the format of server performance profile.
  686. The file is plain text and each line has several NAME=VALUE pair, delimited by
  687. comma.
  688. Currently following NAMEs are recognized:
  689. host::
  690. Hostname of the server. Required.
  691. protocol::
  692. Protocol for this profile, such as ftp, http. Required.
  693. dl_speed::
  694. The average download speed observed in the previous download in bytes per sec.
  695. Required.
  696. last_updated::
  697. Last contact time in GMT with this server, specified in the seconds from the
  698. Epoch. Required.
  699. status::
  700. ERROR is set when server cannot be reached or out-of-service or timeout
  701. occurred. Otherwise, OK is set.
  702. Those fields must exist in one line. The order of the fields is not significant.You can put pairs other than above; they are simply ignored.
  703. An example is follow:
  704. --------------------------------------------------------------------------------
  705. host=localhost, protocol=http, dl_speed=32000, last_updated=1222491640, status=OK
  706. host=localhost, protocol=ftp, dl_speed=0, last_updated=1222491632, status=ERROR
  707. --------------------------------------------------------------------------------
  708. FILES
  709. -----
  710. aria2.conf
  711. ~~~~~~~~~~
  712. User configuration file.
  713. It must be placed under $HOME/.aria2 and must be named as aria2.conf.
  714. In each line, there is 1 parameter whose syntax is name=value pair,
  715. where name is the long command-line option name without '--' prefix.
  716. The lines beginning '#' are treated as comments.
  717. --------------------------------------
  718. # sample configuration file for aria2c
  719. listen-port=60000
  720. dht-listen-port=60000
  721. seed-ratio=1.0
  722. max-upload-limit=50K
  723. ftp-pasv=true
  724. --------------------------------------
  725. dht.dat
  726. ~~~~~~~~
  727. By default, the routing table of DHT is saved to the path $HOME/.aria2/dht.dat.
  728. ENVIRONMENT
  729. -----------
  730. aria2 recognizes the following environment variables.
  731. http_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  732. Specify proxy server for use in HTTP.
  733. Overrides http-proxy value in configuration file.
  734. The command-line option *--http-proxy* overrides this value.
  735. https_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  736. Specify proxy server for use in HTTPS.
  737. Overrides https-proxy value in configuration file.
  738. The command-line option *--https-proxy* overrides this value.
  739. ftp_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  740. Specify proxy server for use in FTP.
  741. Overrides ftp-proxy value in configuration file.
  742. The command-line option *--ftp-proxy* overrides this value.
  743. all_proxy [\\http://][USER:PASSWORD@]HOST[:PORT]::
  744. Specify proxy server for use if no protocol-specific proxy is specified.
  745. Overrides all-proxy value in configuration file.
  746. The command-line option *--all-proxy* overrides this value.
  747. no_proxy [DOMAIN,...]::
  748. Specify comma-separated hostname or domains to which proxy should not be used.
  749. Overrides no-proxy value in configuration file.
  750. The command-line option *--no-proxy* overrides this value.
  751. RESOURCES
  752. ---------
  753. Project web site: http://aria2.sourceforge.net/[]
  754. metalink: http://www.metalinker.org/[]
  755. REPORTING BUGS
  756. --------------
  757. Report bugs to Tatsuhiro Tsujikawa <t-tujikawa at users.sourceforge.net>
  758. AUTHOR
  759. ------
  760. Tatsuhiro Tsujikawa <t-tujikawa at users.sourceforge.net>
  761. COPYRIGHT
  762. ---------
  763. Copyright (C) 2006, 2008 Tatsuhiro Tsujikawa
  764. This program is free software; you can redistribute it and/or modify
  765. it under the terms of the GNU General Public License as published by
  766. the Free Software Foundation; either version 2 of the License, or
  767. (at your option) any later version.
  768. This program is distributed in the hope that it will be useful,
  769. but WITHOUT ANY WARRANTY; without even the implied warranty of
  770. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  771. GNU General Public License for more details.
  772. You should have received a copy of the GNU General Public License
  773. along with this program; if not, write to the Free Software
  774. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  775. In addition, as a special exception, the copyright holders give
  776. permission to link the code of portions of this program with the
  777. OpenSSL library under certain conditions as described in each
  778. individual source file, and distribute linked combinations
  779. including the two.
  780. You must obey the GNU General Public License in all respects
  781. for all of the code used other than OpenSSL. If you modify
  782. file(s) with this exception, you may extend this exception to your
  783. version of the file(s), but you are not obligated to do so. If you
  784. do not wish to do so, delete this exception statement from your
  785. version. If you delete this exception statement from all source
  786. files in the program, then also delete it here.