[mythtv-users] I am an idiot - deleted everything without DB backup - a question...
brucen at ksl.com.au
Sat Sep 8 15:24:53 UTC 2007
John Drescher wrote:
>> Oh, and I have to get myself a backup command to automatically put a
>> backup somewhere else on the network. That or don't do Myth rebuilds
>> when I haven't had enough sleep....
> I make a backup my mythtv database every night with a cron job:
> # 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
I'll use that and stick them on an NFS mounted directory. Nice and handy :)
More information about the mythtv-users