[mythtv-users] feature request for a backup recording location anddb incase of a master server failure

Chris Germano netslayer at hotmail.com
Sun Nov 16 13:25:55 EST 2003


I was asking too much, and honestly I think it would a tad too much for myself to tweak every part in myth that handle file locations and calculations of free space. I'm a full time CS student and kind of busy but that just means all the more I want to tweak it. I do think this should definitely be a built in feature. The ability to 2 recording directories, giving one presidency. So if one is out of room or can't be connected too it defaults locally, then if the connection is restored it could move the remaining data over. This would be nice to integrate into the GUI settings also. The whole local SQL table is a good idea, but probably isn't too feasible.

I'm only in the preplanning stages to have a remote slave mythbackend/frontend for the family room. I'm planning on getting a 54G PCI card for it, probably use the prism54.org drivers and work from there. One last thing I also have to figure out is how to have it run scripts to start mythfrontend & backend as root when it auto logs in. I've searched online and on the list here but I've never figured this out, since .kde/Autostart does not load when autologin is enabled heh. Also would like to find that script that someone built a while back to turn on and off the box by scheduled recordings. Most likely I will just set it to turn on at 5pm or something by using the BIOS or just have my master backend send out a WOL packet. Then too turn it off I'll figure out a script on it locally for midnight. 

I might look into this bjm heh, anyway if I get it working I will submit a patch. > Is there any option to specify a secondary location for recording? 

>That shouldn't be too hard. Add code to split 'RecordFilePrefix' 
>on ":" where it opens the file. Try to open the basename in the 
>first dir. If it fails try the next. If there are no more dirs 
>and no open has succeeded then report file not found. You should 
>then be able to enter a colon separated list of directories in 
>the backend "setup" program's General pages. 
>
>You would also need to split the path and use the first element 
>where the recorder opens a file for writing. 
>
>Send a patch when you get it working =). 
>
>-- bjm 

+ of course more code heh

>You'd also need to modify the disk space threshhold-checking code for 
>starting new recordings & auto-expire. 
>
>-JAC 

>Make sure that you make changes to the backend as well so it knows how 
>to determine the free space for multiple directories. 
>
>And when the recorder tries a file it should check to see that the free 
>space on that directory/filesystem isn't below the threshold set. :) 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20031116/f5cc9b0c/attachment.htm


More information about the mythtv-users mailing list