[mythtv] an idea from ruby on rails

buzz davidbuzz at gmail.com
Fri Jan 25 10:56:52 UTC 2008


In my daily cron job I run this 4 line script which keeps the last 7 backups
live on disk, long enough for me to quickly rewind to a recent version, and
for my backup software to put them to more permanent backup weekly. it's
basic, but functional for roll-back purposes.  I loose meta-info for the
occassional recording if I rollback after a recording was made,

# cat mysql_backup_myth
#!/bin/bash
cd /var/log/mythtv
mysqldump -u root --password=my00SQL mythconverg > dump-`date
+"%Y%m%d-%H%M%S"`-myth.sql
ls -t dump-*.sql | head -7 | xargs rm

Buzz.
On Jan 25, 2008 8:37 PM, Stuart Morgan <stuart at tase.co.uk> wrote:

> On Friday 25 January 2008 10:20:07 Andrew Williams wrote:
> > It would be nice if the backend would take a snapshot of your database
> > before moving up to the next version, would be handy for us tracking
> > SVN and not realising theres a schema update in the recent revisions.
>
> Someone is working on this feature and creating regular backups
> automatically
> from the mythtv.
> --
> Stuart Morgan
>  _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080125/91b4de48/attachment.htm 


More information about the mythtv-dev mailing list