[mythtv] an idea from ruby on rails
Tom Lichti
tom at redpepperracing.com
Fri Jan 25 17:25:49 UTC 2008
buzz wrote:
> 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.
I do the same thing, but instead of keeping them local I email them to
my gmail account. With 6 GB of space, I have 2 months of mythconverg
backups, not that I need that many.
Tom
More information about the mythtv-dev
mailing list