Upgrading

Upgrading between Mythbuntu Releases
As with all upgrades, please backup your database and other important files before upgrading. You do not need to upgrade to auto-builds prior to upgrading to the next Mythbuntu release. This will be taken care of during the upgrade process.
To upgrade, you will follow the Ubuntu Network Upgrade Guide.

Clean Install of Mythbuntu, keeping old database
You can also backup your database and important files and do a clean install of Mythbuntu.
(excerpted and customized for Ubuntu from
http://www.mythtv.org/wiki/Database_Backup_and_Restore)
- Execute backup script:
/usr/share/mythtv/mythconverg_backup.plNote: if your system doesn't have the necessary scripts, they may be obtained from SVN.
http://svn.mythtv.org/trac/browser/trunk/mythtv/programs/scripts/database/mythconverg_backup.pl?format=txt
http://svn.mythtv.org/trac/browser/trunk/mythtv/programs/scripts/database/mythconverg_restore.pl?format=txt
- Save a copy of the resulting backup (which is usually the most recent file in /var/lib/mythtv/db_backups/) someplace that will survive reinstalls and/or disk failures.
- Perform Mythbuntu install or upgrade
- Stop the backend:
sudo stop mythtv-backend- Obtain the mythtv password from here:
grep DBPassword /etc/mythtv/config.xml- Delete old database and create a base new one:
mysql -u mythtv -p -e "DROP DATABASE IF EXISTS mythconverg;"
mysql -u mythtv -p -e "CREATE DATABASE mythconverg;"- Copy the previously saved database to /var/lib/mythtv/db_backups/ and then execute the restore command:
Note: this restore can take a number of minutes for even average sized databases.
/usr/share/mythtv/mythconverg_restore.pl --directory /var/lib/mythtv/db_backups --filename FILENAME
- Start the backend again:
sudo start mythtv-backend
Upgrading to the next release of MythTV
Each Mythbuntu release also has two versions of MythTV provided by the Mythbuntu team. This are available through a service called auto-builds.
Please see the auto-builds page for more info.



