<p><br>
On Oct 2, 2012 8:01 AM, &quot;Magnus Larsson&quot; &lt;<a href="mailto:magnus@vista.se">magnus@vista.se</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi!<br>
&gt;<br>
&gt;<br>
&gt; 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>

&gt;<br>
&gt; And the idea to physically move the drives is appreciated - had not thought of that.<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>

&gt;<br>
&gt; 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>&gt;<br>
&gt; Best,<br>
&gt;<br>
&gt;<br>
&gt; Magnus<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2012-10-01 01:14, Nick Rout skrev:<br>
&gt;<br>
&gt;&gt; On Mon, Oct 1, 2012 at 11:15 AM, Michael T. Dean<br>
&gt;&gt; &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 09/30/2012 08:08 AM, Magnus Larsson wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi!<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am setting up a brand new backend for my Mythtv (all in ubuntu 12.04),<br>
&gt;&gt;&gt;&gt; and need to move the database and existing recordings to this new machine. I<br>
&gt;&gt;&gt;&gt; read in the Wiki on how to manage storage devices in the storage groups, but<br>
&gt;&gt;&gt;&gt; am not clear on how to best move betwen different physical machines.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; My plan is to export - import the database and simply do a rsync of the<br>
&gt;&gt;&gt;&gt; recordings to the new maching. The paths in the new machine will be slightly<br>
&gt;&gt;&gt;&gt; different (bigger, raid5, as opposed to smaller and no-raid previously).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Any advice before I start and make troubles for myself?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If by &quot;export - import&quot; you mean, do a complete backup of the database (<br>
&gt;&gt;&gt; <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>
&gt;&gt;&gt; restore of that backup on the new machine, replacing whatever database may<br>
&gt;&gt;&gt; be there (<br>
&gt;&gt;&gt; <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>
&gt;&gt;&gt; ), that&#39;s the proper procedure for handling the database.  As Nick<br>
&gt;&gt;&gt; mentioned, make sure you consider host names--the easiest approach is to use<br>
&gt;&gt;&gt; the exact same host name for the new system as you used on the old, since<br>
&gt;&gt;&gt; all your configuration is stored in a profile based on the system&#39;s host<br>
&gt;&gt;&gt; name.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; And, IMHO, rsync is the best tool for moving the recordings themselves<br>
&gt;&gt;&gt; (using --progress, especially, makes it user-friendly--not to mention the<br>
&gt;&gt;&gt; fact that you can stop/restart it as necessary).<br>
&gt;&gt;<br>
&gt;&gt; My standard rsync options are -avPp - I&#39;ve been doing it that way so<br>
&gt;&gt; long I cannot recall what they each do, but I get progress reported<br>
&gt;&gt; back to me!<br>
&gt;&gt;<br>
&gt;&gt; I assume you are doing rsync over your lan. It may be quicker to<br>
&gt;&gt; remove the storage drives from the old machine and plug them in to the<br>
&gt;&gt; new machine. The transfer will be quicker, and you can still use rsync<br>
&gt;&gt; so that if you have to stop for some reason, you can carry on later.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Mike<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; mythtv-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt;&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mythtv-users mailing list<br>
&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</p>