[mythtv-users] Moving recordings between storage directories

Robin Gilks g8ecj at gilks.org
Mon Jul 23 23:20:34 UTC 2007


> Robin Gilks wrote:
>> Greetings
>>
>> I'm looking to retire an old harddrive that is providing one of two
>> storage directories on my system with a few gigs of shows on it.
>>
>> Having moved the shows themselves across to the 'primary' store and
>> removed the old path in mythtv-setup, is there a simple way to update
>> the
>> database as to where the files now physically reside having shifted
>> them?
>>
>> I guess its a one liner mysql statement but not having much of a clue
>> about databases how would I do a global change of /mnt/store1 to
>> /mnt/store2 ?
>>
>> Cheers
>>
>>
>
>
> If you are running 0.20 you just have to change the recordings direcory
> in mythtv-setup. If SVN then remove your old dir and add the new one to
> your list of storage directories. You should not have to do any SQL to
> move the files.

I'm running SVN (r14020 I think it was) so the storage directory stuff has
had all the wrinkles smoothed out!!

I tried copying a file from the old to the new location, unmounted the old
location and it just worked!! I didn't realise that the recording was only
tagged with the storage group and the members of the group are searched
for the recording in question - I had assumed (wrongly) that the recording
was tagged with the actual location it was stored in.

So it turns out that my problem isn't a problem after all!!

-- 
Robin Gilks



More information about the mythtv-users mailing list