I've got Deluge 1.3 running headless under Wheezy, administering using the ThinClient and SSH for command line stuff.
I created a folder called /mnt/incoming and set the owner to the user I called deluge, and then put the following line in my fstab:
Code: Select all
//192.168.1.254/incoming /mnt/incoming cifs defaults,uid=deluge,gid=deluge 0 0
In other words, I have most of my torrents in Deluge downloading to /mnt/incoming which saves them to the incoming folder on my NAS and this all seems to work very well..
except for one kinda big problem.
If the NAS loses connection for any reason then the mount point entered in fstab is lost and Deluge sees the /mnt/incoming folder as a normal empty (local) folder and starts over my torrents at 0%, now downloading them into this folder locally.
So far this is the only thing holding me back from letting this thing run unattended 24/7, because I have to somewhat actively monitor whether the NAS is still mounted.
Is there a way to tell Deluge not to write to the folder if it is not mounted? Or to find some kind of key file stored on the NAS in the directory before writing, to show that the connection is established? Or am I going about this whole thing the wrong way in the first place? Mounting it like this seems to work great until there is a network problem and then it really messes the bed. I'd like Deluge to just stop transferring files to that folder until I notice the issue -- but open to other suggestions as well. Thank you!