View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Dec 10, 2009 8:05 am 
Offline
Joined: Wed Feb 14, 2007 9:19 am
Posts: 38
Location: Rockford, MI USA
Upgrading my trusty Knoppmyth system from R5F27 to the new LinHES R6 version was problematic, so I ultimately decided on a completely fresh install instead, which, other than endless fuppes error messages, which I am still trying to figure out, everything else seems to work as expected. What is fuppes, why do I need it, and can I just delete it to make these errors go away? All questions I am trying to find answers to.

More Importantly, and the central point of this inquiry:

I had made a backup copy of my old system's /myth partition, currently mounted as /myth3, and I am wondering if there is a script or some other way to easily incorporate those recording files into the new R6 database?

As I recall, once in the past, there was a script for Knoppmyth that would recover 'orphan' files and place them in the database. How would I do a similar proceedure in R6?

Thanks in advance for any advice. I thought I was pretty comfortable with LINUX and Knoppmyth, but quite frankly, Arch and LinHES is creating an unexpectedly high learning curve in my immediate vicinity!
Not complaining mind you, I know that as soon as MY abilities are up to the task, the new system will be even better than the Knoppmyth system I have used and loved for so many years!

_________________
LinHES - The only SANE Multimedia Option!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 10, 2009 1:50 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Hmmm... steps I would try assuming you did a mythbackup before the upgrade:

1) Do the fresh install of R6 to the new hdd (which you did)
2) Manually copy over all of your old /myth partition to the new hdd's /myth (your myth3 I guess) using gparted or rsync or cp -a ..whatever
3) Boot from the R6 CD and select upgrade to install ontop of your modified R6 install. The installer should catch your backups and restore/upgrade them

I dunno about any script based method.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 10, 2009 3:06 pm 
Offline
Joined: Sat Feb 03, 2007 12:52 am
Posts: 187
Location: Manitoba, Canada
I think the script your looking for is
Code:
 /usr/share/mythtv/contrib/myth.find_orphans.pl
but if you have a lot of recordings that will take some time. You might be able to get program information from /myth/pretty if it still exists.

If you have a proper backup, you could extract the tables from it and restore only the ones you need into the DB. You need the following.
Quote:
oldrecorded
people (referenced by recordedcredits)
recorded
recordedcredits
recordedmarkup
recordedprogram
recordedrating
recordedseek



Check out http://mysettopbox.tv/phpBB2/viewtopic.php?t=17867

Edit: just realized your useing R5F27. I think F27 had mythtv.20.2 but R5.5and R6 have mythtv.21. It may not be a good idea to import only the DB data you needs as some DB structures have changed.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 10, 2009 4:52 pm 
Offline
Joined: Sat Feb 03, 2007 12:52 am
Posts: 187
Location: Manitoba, Canada
Sorry, wrong one. That one finds but doesn't import. Try this one.
Code:
 /usr/share/mythtv/contrib/myth.rebuilddatabase.pl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 11, 2009 7:42 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
As goofee suggested selectively restoring the data from the correct tables is probably the best way to go. Memory says that someone actually wrote and posted a script to pull the necessary records out of the backup after I researched the tables for them...

This looks like one of the relevant threads: http://knoppmyth.net/phpBB2/viewtopic.php?t=17867


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 02, 2010 7:47 pm 
Offline
Joined: Fri Mar 30, 2007 1:01 pm
Posts: 21
Location: Santa Ana, CA
goofee wrote:
Sorry, wrong one. That one finds but doesn't import. Try this one.
Code:
 /usr/share/mythtv/contrib/myth.rebuilddatabase.pl

Now at
Code:
/usr/share/mythtv/contrib/recovery/myth.rebuilddatabase.pl


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu