<p><br>
On Oct 2, 2012 8:01 AM, "Magnus Larsson" <<a href="mailto:magnus@vista.se">magnus@vista.se</a>> wrote:<br>
><br>
> Hi!<br>
><br>
><br>
> Thanks for your advice! Yes, I meant complete backup of database, however, I was not aware of the scripts described on the wiki page (<a href="http://www.mythtv.org/wiki/Database_Backup_and_Restore">http://www.mythtv.org/wiki/Database_Backup_and_Restore</a>).<br>
><br>
> And the idea to physically move the drives is appreciated - had not thought of that.<br>
><br>
> One more question: I understand how I manage the hostname, and it sounds like a good idea to use the old hostnamne (I know how to manage that) - but:<br>
><br>
> What about the path to the recordings themselves? I mean, how are they identified in the database - does that depend on the actual path in the file-system? I would like to use another file system logic in the new one, as the old one is not logical (due to incremental growth over a few years). Will that work, or do I need to consider this specifically? (I am quite ignorant about how the mythtv database actually works....).<br>
><br>
> I hope this makes sense. Grateful for any comments on it. I am getting this process started tomorrow</p>
<p>as long as a recording is in a storage group it will be found. you need to add your new directories to sg setup in mythtv-setup. And remove the redundant ones which will have come across with the database restore. <br>
</p>
<p>><br>
> Best,<br>
><br>
><br>
> Magnus<br>
><br>
><br>
><br>
> 2012-10-01 01:14, Nick Rout skrev:<br>
><br>
>> On Mon, Oct 1, 2012 at 11:15 AM, Michael T. Dean<br>
>> <<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> wrote:<br>
>>><br>
>>> On 09/30/2012 08:08 AM, Magnus Larsson wrote:<br>
>>>><br>
>>>> Hi!<br>
>>>><br>
>>>> I am setting up a brand new backend for my Mythtv (all in ubuntu 12.04),<br>
>>>> and need to move the database and existing recordings to this new machine. I<br>
>>>> read in the Wiki on how to manage storage devices in the storage groups, but<br>
>>>> am not clear on how to best move betwen different physical machines.<br>
>>>><br>
>>>> My plan is to export - import the database and simply do a rsync of the<br>
>>>> recordings to the new maching. The paths in the new machine will be slightly<br>
>>>> different (bigger, raid5, as opposed to smaller and no-raid previously).<br>
>>>><br>
>>>> Any advice before I start and make troubles for myself?<br>
>>><br>
>>><br>
>>> If by "export - import" you mean, do a complete backup of the database (<br>
>>> <a href="http://www.mythtv.org/wiki/Database_Backup_and_Restore">http://www.mythtv.org/wiki/Database_Backup_and_Restore</a> ) and then do a full<br>
>>> restore of that backup on the new machine, replacing whatever database may<br>
>>> be there (<br>
>>> <a href="http://www.mythtv.org/wiki/Database_Backup_and_Restore#Replacing_an_existing_database">http://www.mythtv.org/wiki/Database_Backup_and_Restore#Replacing_an_existing_database</a><br>
>>> ), that's the proper procedure for handling the database. As Nick<br>
>>> mentioned, make sure you consider host names--the easiest approach is to use<br>
>>> the exact same host name for the new system as you used on the old, since<br>
>>> all your configuration is stored in a profile based on the system's host<br>
>>> name.<br>
>>><br>
>>> And, IMHO, rsync is the best tool for moving the recordings themselves<br>
>>> (using --progress, especially, makes it user-friendly--not to mention the<br>
>>> fact that you can stop/restart it as necessary).<br>
>><br>
>> My standard rsync options are -avPp - I've been doing it that way so<br>
>> long I cannot recall what they each do, but I get progress reported<br>
>> back to me!<br>
>><br>
>> I assume you are doing rsync over your lan. It may be quicker to<br>
>> remove the storage drives from the old machine and plug them in to the<br>
>> new machine. The transfer will be quicker, and you can still use rsync<br>
>> so that if you have to stop for some reason, you can carry on later.<br>
>><br>
>><br>
>><br>
>>> Mike<br>
>>><br>
>>> _______________________________________________<br>
>>> mythtv-users mailing list<br>
>>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>><br>
>> _______________________________________________<br>
>> mythtv-users mailing list<br>
>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
><br>
><br>
> _______________________________________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</p>