[mythtv] Re: New idea for storing recordings to disks

Chris Pinkham cpinkham at bc2va.org
Wed Jun 29 01:16:07 UTC 2005


>     I am just wondering if all this is really necessary.
> It is not too hard to do this sort of thing via NFS/Samba
> and symlinks and a cron job or two (e.g. every 10 minutes
> if the recordings partition is more than X% full, move the
> oldest recordings to another partition/network-mount and
> replace with a symlink), and it means we are not adding
> extra complexity needlessly.

This is already partially accomplished in myth_archive_job.pl
in the contrib directory.  In combination with the newer AutoExpire
code that detects whether the file is a link or not, this may give
some of you eveything you're looking for.  I use it to "archive" off
a few shows onto a snapserver that I have so I can let them record
without a maxepisodes set and don't have to worry about them filling up
my main nfs server's hard drive.  There's no cron job necessary, it
runs as a User Job when the recording finishes and supports multiple
destination directories and will pick the first one it finds with
enough space.  For usage, see here:

http://mythtv.org/pipermail/mythtv-commits/2004-September/004233.html

http://www.gossamer-threads.com/lists/mythtv/dev/103879?search_string=myth_archive_job.pl;#103879

-- 
Chris



More information about the mythtv-dev mailing list