Using btpd

queueRAM edited this page Sep 14, 2010 · 1 revision

Starting btpd

  • Start btpd with all options set to their default values
    $ btpd
  • Start btpd as above, but with torrent data in the directory /var/torrents
    $ btpd -d /var/torrents
  • Start btpd and make it listen on port 12345, limit outgoing bandwidth to 200kB/s, limit the number of peers to 40 and not start any torrents that were active the last time btpd was shut down
    $ btpd -p 12345 --bw-out 200 --max-peers 40 --empty-start

Interacting with btpd through btcli

  • Add foo.torrent, with content dir /home/user/foo.torrent.d/, and start it.
    $ btcli add -d /home/user/foo.torrent.d foo.torrent
  • Same as above without starting it.
    $ btcli add -N -d /home/user/foo.torrent.d foo.torrent
  • Display a list btpd’s torrents and their number, size, status, etc.
    $ btcli list
  • Same as above, but only for torrent 12 and my.little.torrent.
    $ btcli list 12 my.little.torrent
  • Same as above but only for active torrents.
    $ btcli list -a
  • Use a custom list format
    $ btcli list -f "btcli list -f "%n\t%#\t%p%s\t%r\n"
  • Start bar.torrent and torrent number 7.
    $ btcli start bar.torrent 7
  • Stop torrent number 7.
    $ btcli stop 7
  • Stop all active torrents.
    $ btcli stop -a
  • Remove bar.torrent and it’s associated information from btpd.
    $ btcli del bar.torrent
  • Display a summary of up/download stats for the active torrents.
    $ btcli stat
  • Display the summary once every five seconds.
    $ btcli stat -w 5
  • Same as above, but also display individual stats for each active torrent.
    $ btcli stat -w 5 -i
  • Shut down btpd.
    $ btcli kill