[mythtv-users] A MythTV backup proposal

DaveD mythtv at guiplot.com
Sat Apr 5 15:57:34 UTC 2008

Here are my two cron entries that I use:
0 4 * * * nice /usr/bin/mysqldump -c -a -u root mythconverg > 
30 4 * * * nice rsync -rlptg --delete /shome/mythtv /usbd/shome

The first backs up the database at 4:00AM every morning and the second 
backs up my recordings at 4:30.  I have yet to exploit the 
multi-directory capabilities of 0.21 which simplifies the backup a bit 
since all my recordings are on one lvm (/shome).  The /usbd is (guess?) 
an external terabyte USB drive.  VERY cost effective now days.  You can 
even get them with dual hardware RAID drives, but I thought that would 
be a bit overkill.  My OS is on RAID1 over two partitions on separate 
SATA drives, the rest of which make up the LVM.  If my MB/PS fries 
record capability is gone but I can still watch recordings by taking the 
USB drive to another FE system and playing the files with mplayer.


Mitch Gore wrote:
> On Sat, Apr 5, 2008 at 9:41 AM, David Segall <david at segall.net 
> <mailto:david at segall.net>> wrote:
>     I recently posted on the subject of MythTV backup
>     <http://www.gossamer-threads.com/lists/mythtv/users/327389#327389> and
>     received responses advocating everything from enterprise level backup
>     and servers to "it's only TV".  I found the former too expensive
>     and the
>     latter barely credible from anyone who expends the effort
>     maintaining a
>     MythTV system and following this mailing list.
>     The backup of operating system and database data is assumed and well
>     covered in the MythTV Wiki. I want to ensure that my backup also
>     includes recorded TV to the extent I can afford. I would like a script
>     that copies the recorded TV using the available backup space and
>     following exactly the same rules as my MythTV setup would use if
>     it had
>     the same amount of space. That implies that if a program has been
>     deleted it would also be deleted from the backup. I would probably
>     also
>     want to exclude some news programs that I only record in case
>     something
>     interesting happens.
>     I would be interested in your opinions. For example, would you change
>     MythTV's expiry rules if you had substantially more, or less, disk
>     space?
>     --
>     David
>     _______________________________________________
> Look at rsync.  You could set up a cron job to sync the two 
> folders/drives every hour or two. 
> Mitchell
> ------------------------------------------------------------------------
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

More information about the mythtv-users mailing list