[mythtv-users] Migration issues from 0.20 to 0.22

Michael T. Dean mtdean at thirdcontact.com
Wed Dec 9 03:56:01 UTC 2009


On 12/08/2009 10:15 PM, Rick Goldberg wrote:
> On Tue, Dec 8, 2009 at 9:32 PM, Michael T. Dean wrote:
>   
>> On 12/08/2009 08:41 PM, Rick Goldberg wrote:
>>     
>>> Now the part I can't figure out. How do I migrate all my data off the old
>>> 0.20 myth box to my new 0.22 backend?
>> You really need to do a full restore of your 0.20 data.
>>
>> Then, if your host names change, you /must/ do
>> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Change_the_hostname_of_a_MythTV_frontend_or_backendfor each host whose name you change *before you start any mythtv programs*
>> (including mythtv-setup and mythbackend).
>>
>> So, for example, if your master backend was named mbe before and now it's
>> newmbe, you'd do:
>>
>> mythconverg_restore.pl --change_hostname --old_hostname="mbe"
>> --new_hostname="newmbe"
>>
>> And if you had a frontend named frontend and changed its hostname to
>> newfrontend:
>>
>> mythconverg_restore.pl --change_hostname --old_hostname="frontend"
>> --new_hostname="newfrontend"
>>
>> Then start mythtv-setup and let it upgrade the database schema.
>>
>> There's really no benefit to doing a partial restore--even if you choose
>> not to install some plugins you previously installed, the space taken up by
>> their data is negligible.  A partial restore is meant as a last-ditch
>> approach for salvaging a little data from a broken database.
>>
>> If you really feel you must do a partial restore, it can be done, but the
>> process will include /all/ of the above steps plus a few others.
> Thanks for the reply.
>
> When you say "before you start any mythtv programs (including mythtv-setup
> and mythbackend)" is it a problem that I've previously run myth-setup and
> mythbackend on the new machine?

No, because to do a full restore of the 0.20 database backup, you'll 
have to drop the existing 0.22-fixes database.  Once you drop that 
database, you can't start mythtv-setup or mythbackend until you've 
restored the 0.20 database backup /and/ done the appropriate hostname 
changes.

>  Is stopping mythbackend (and any other myth
> processes)  enough, or do I need to change the hostnames before ever having
> run  these?

You'll have to stop them (all MythTV apps on all hosts--all 
mythfrontend, mythbackend, mythtv-setup processes) to drop the 
database.  Once you drop/restore the old 0.20 database backup, you've 
"reset" the clock on the "before starting..."  See 
http://www.mythtv.org/wiki/Database_Backup_and_Restore#Database_Restore 
for information about dropping/restoring the database.

Mike


More information about the mythtv-users mailing list