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

gas*_*ter 8 bittorrent

我将 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'
Run Code Online (Sandbox Code Playgroud)

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

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

Яро*_*лин 0

您将在无限循环中播种 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
Run Code Online (Sandbox Code Playgroud)

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

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