MythTV Migration

http://www.mythtv.org/wiki/Database_Backup_and_Restore

One of my first experiences with mythtv was restoring a recording and a dump of the MySQL database before I could buy my own tuner card. It was cool to see recordings populated and get a feel for the UI, but it was ultimately pretty pointless. Anyhoo, I bork’d my mythbuntu setup and needed to migrate my previous recordings to another installation. Come to find out, this has gotten so much simpler than ever before!

cd /home/raging
wget https://github.com/MythTV/mythtv/raw/master/mythtv/programs/scripts/database/mythconverg_backup.pl
wget https://github.com/MythTV/mythtv/raw/master/mythtv/programs/scripts/database/mythconverg_restore.pl
chmod a+x mythconverg_backup.pl mythconverg_restore.pl
echo "DBBackupDirectory=/home/raging" > ~/.mythtv/backuprc
perl /home/raging/mythconverg_backup.pl

I’m going to assume you know how to copy all the files from /var/lib/mythtv/recordings/ to another location and back
I’m also going to assume you know how to copy the backup file created from your home directory to another location and back


cd /home/raging
wget https://github.com/MythTV/mythtv/raw/master/mythtv/programs/scripts/database/mythconverg_backup.pl
wget https://github.com/MythTV/mythtv/raw/master/mythtv/programs/scripts/database/mythconverg_restore.pl
chmod a+x mythconverg_backup.pl mythconverg_restore.pl
perl mythconverg_restore.pl --drop_database --create_database --directory /home/raging --filename mythconverg-1264-20111120212038.sql.gz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: