Table of Contents

Shortnote

If we create a dropbox shared over the network using samba or afp, then the following script will queue any folder that is placed in the dropbox.

The script will list all directories in the /srv/rtorrent/dropbox folder and then move *.torrent files to the /srv/rtorrent/torrents/ directory and the content to /srv/rtorrent/downloads/.

Requirements

  • mktorrent can be installed with aptitude install mktorrent
  • incron is needed to wait for changes in the torrent dropbox directory - it can be installed on Debian by issuing aptitude install incrond

Setup

  • Download the announce-torrents script and place it at /srv/rtorrent/announce-torrents,
  • Create a file at /etc/defaults/announce-torrents with the following contents:
# The path to where torrent files are downloaded.
DOWNLOADS_FOLDER=/srv/rtorrent/downloads/
 
# The path to where torrent files (*.torrent) are stored.
TORRENTS_FOLDER=/srv/rtorrent/torrents/
 
# The shared path where torrent files (*.torrent) are added.
DROPBOX_FOLDER=/srv/rtorrent/dropbox/
 
# The HTTP tracker to announce.
HTTP_TRACKER=http://sow.grimore.org:65548/announce
 
# The UDP tracker to announce.
UDP_TRACKER=udp://sow.grimore.org:65548/announce

and adjust the paths and parameters accordingly - particularly, pay attention to the HTTP_TRACKER and the UDP_TRACKER settings because they are supposed to point to your tracker.

  • Install incron and create the entry at /etc/incron.d/updated-torrent-dropbox with the following line: /srv/rtorrent/dropbox IN_CREATE /bin/sh /srv/rtorrent/announce-torrents @/$#,
  • Restart incron.

By using inotify, the script will run when a torrent file is dropped into the dropbox which is far better than using cron. However, if the latter behaviour is desired, the script may also be called from cron periodically.

Index


unix/torrent_seedbox/automatically_create_torrents.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.