Move DL'ed files (bittorrent problem)
I've set up a dedicated download box using Ubuntu and Torrentflux. This machine's only task is to DL files; it is not supposed to be a file server. Instead, I want to move the DL'ed files to my network file server (also an Ubuntu machine) - or rather; I want my file server to fetch the files from the DL server. Although I am new to Linux I believe a cron job using NFS would do the trick, but the finished DL's are stored in the same directory as the incomplete DL's, so I am uncertain about how to proceed.
The thing I want to do, I suppose, is to have a cron job running on the torrent box comparing the DL'ed file (zip, avi or whatever) to the SHA1 hash code contained in the .torrent file. If the two hashes match; move the file to a "Finished" directory. Once the files have been moved I bet it's a simple job to get the file server to fetch the files from the BitTorrent box via NFS or Samba.
Changing BitTorrent service to XXX is not an option; the main feature of TorrentFlux is that I access it via a web interface from anywhere - my main computer, my laptop or even at work (don't tell my boss). I'm gonna check out TorrentFlux-B4rt, maybe that client has the feature I want built-in, although I doubt it.
One note: for security reasons I have chosen to put the bittorrent box on a DMZ and the rest of the network behind a firewall. If security was not an issue I would simply put the bittorrent service ON the file server.
|