[mythtv-users] matching directory structure during migration
Mike Perkins
mikep at randomtraveller.org.uk
Wed Aug 5 17:25:48 UTC 2015
On 05/08/15 18:06, Jerome Yuzyk wrote:
> On Wednesday, August 05, 2015 01:56:50 PM Stuart Auchterlonie wrote:
>> On 05/08/15 03:18, Jerome Yuzyk wrote:
>>> From https://www.mythtv.org/wiki/Backend_migration "Building a new
>>> backend>
>>> to replace an existing machine":
>>> Copy all media (recordings, videos, music, etc) from the old
>>> machine to
>>> the same directory structure on the new machine.
>>>
>>> I am tweaking my new setup a little, to take advantage of some
>>> experience and new hardware, and I'm wondering how critical this is.
>>> Can I use symlinks to make my new layout look like my old layout?
>>> Until I can get Myth to use my new layout? I don't have any content
>>> other than recordings. Would the DB have to be changed to use my new
>>> layout?
>>
>> What you really need to do, is ensure your Storage Group directories
>> point to where ever you have put the recordings / videos etc.
>>
>> So you can move it around, provided you update the SG config to point
>> to the new location.
>
> Will a DB upgrade ever care that this location doesn't exist? Or can I get
> away with adjusting it in mythtv-setup before I ever start mythbackend?
>
> I see two of my old locations in the 1264 (0.24-2) converted database:
>
> table 'storagegroup' field 'dirname' (/recordings)
>
> table 'settings' 'RecordFilePrefix' (/home/mythtv/video/recordings)
> 'MythArchiveTempDir' (/home/mythtv/tmp/)
> 'DVDRipLocation' (/home/mythtv/tmp/)
> 'GalleryDir' (/home/mythtv/rgam)
> 'MusicLocation' (/home/mythtv/music)
> 'VideoStartupDir' (/home/mythtv/video/videos)
>
> If I can change these fields after conversion then my question is moot.
> Otherwise, will I have to make sure that /recordings and
> /home/mythtv/video/{recordings,video} exist before conversion?
>
> I think I answered my own question though: the first conversion didn't
> care. The second one probably won't. But just in case anyone ever wonders
> like I did. I'm still assuming I can adjust everything with mythtv-setup
> before mythbackend ever starts.
>
I don't think the backend objects to anything being offline before it gets used,
which means you have the opportunity to take it down before it gets to complain.
I think that as long as you have at least one recording directory available
before a scheduled recording begins - and you don't try LiveTV, of course - you
should be fine.
--
Mike Perkins
More information about the mythtv-users
mailing list