[mythtv-users] MythTV backup

Brad DerManouelian myth at dermanouelian.com
Wed Apr 2 18:41:33 UTC 2008


John Drescher wrote:
>>  I don't care much about losing the video files because, as you say,
>>  it's just TV, and most stuff will eventually be re-run.  This thread
>>  reminds me that I really ought to back up the database, though; I have
>>  quite a pile of recording rules and they'd take a while to recreate.
>>
> 
> I have this as a cron job that runs daily.
> 
>  # cat /etc/cron.daily/mythtv.cron
> 
> #! /bin/sh
> mkdir -p /var/backup/mythtv
> /usr/bin/mysqldump -u mythtv mythconverg | /bin/bzip2 -c >
> /var/backup/mythtv/mythtv-`date +%F`.bz2

There are others here:
http://www.mythtv.org/wiki/index.php/Backup_your_database


More information about the mythtv-users mailing list