LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Move DL'ed files (bittorrent problem) (https://www.linuxquestions.org/questions/linux-general-1/move-dled-files-bittorrent-problem-663183/)

stromdal 08-16-2008 05:38 AM

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.

ErV 08-16-2008 08:54 AM

mldonkey also has web-interface and (AFAIK) it moves downloaded files to separate folder. So you can automate task using cron, but without calculating hashes.

stromdal 08-16-2008 10:53 AM

Quote:

Originally Posted by ErV (Post 3249630)
mldonkey also has web-interface and (AFAIK) it moves downloaded files to separate folder. So you can automate task using cron, but without calculating hashes.

Thanks for the tip, I'll check it out!


All times are GMT -5. The time now is 08:50 PM.