如何使用 aria2 来播种多个文件?

如何使用 aria2 来播种多个文件?

我正在使用带有以下别名的 aria2:

cat .bashrc
alias download='while true; do timeout -s 9 1260 aria2c -j 10 *.torrent --bt-require-crypto=true --lowest-speed-limit=1024 --disable-ipv6=true --seed-time=0 --enable-rpc=false; sleep 5; done'
alias seed='while true; do timeout -s 9 1260 aria2c --bt-require-crypto=true --check-integrity=false --bt-seed-unverified=true --disable-ipv6=true -d . *.torrent --seed-time=99999 --seed-ratio=100.0; sleep 5; done'

我使用“download”下载目录中的 .torrent 文件,使用“seed”进行播种。

问题:我该如何优化种子别名?我是否使用了“最佳”种子参数?(例如:我在“种子”目录中有几百个 .torrent 文件)

答案1

您正在无限循环中播种 21 分钟。这似乎毫无意义。选项 --seed-time=99999 与超时 (1260) 相矛盾。只需播种 72 小时或永久播种即可。

选项--disable-ipv6=true 是有问题的,因为您为什么不想连接到 ipv6 对等体?

这两个是值得怀疑的:--check-integrity=false --bt-seed-unverified=true 因为你想发送有效数据。我理解你为什么可能想跳过检查,只要确保你没有播种垃圾就行了。

我将使用 xargs 和 -D 选项一次性启动它们,以便它们在后台运行。

就像是:

 find /data/seed -name '*.torrent' -print0 | xargs -0 -n1 -P 6 aria2 -D --foo --bar

几天前,我用 ctorrent 解决了类似的问题。你可以在网上找到我的结果:

它将验证一次种子并创建一个隐藏文件以表明验证已完成。

相关内容