[mythtv-users] Backing up mysql database.

Michael T. Dean mtdean at thirdcontact.com
Sun Sep 9 01:31:46 UTC 2007


On 09/08/2007 06:11 PM, Tom Metro wrote:
> Attached is a slightly modified version that pulls the database 
> credentials from /etc/mythtv/mysql.txt and makes a few other tweaks.
>
>   -Tom
>
>
> #! /bin/bash
> # Script: mythbackup
> # based on a script by sdkovacs at gmail.com, 3/22/2006
> ########################################################
>
> BACKUP_PATH=/data/backups/mythtv
> # specify an optional secondary location for the backup
> SECONDARY_PATH=/video/backups/mythtv
>
> . /etc/mythtv/mysql.txt
>   

Just be very careful not to let any stray commands in your
mysql.txt--especially if running the script as root.  :)

Mike


More information about the mythtv-users mailing list