View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Aug 29, 2006 10:12 pm 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
I know the upgrade instructions were suppose to be written for a drunken monkey. :) I am sober but have a question.

I am guessing that it doesn't say it but should I choose do to a auto upgrade because I think when 5C7 came out you were suppose to wipe and reload. So I was just wanting to check.


Second if you do an auto upgrade I didn't see about restoring the DB or do you run that mythdatabase rebuild script thing.

Sorry if these are easy questions.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 
PostPosted: Tue Aug 29, 2006 11:00 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
sinspot1 wrote:
Second if you do an auto upgrade I didn't see about restoring the DB or do you run that mythdatabase rebuild script thing.

If the autoupgrade installer finds a previous backup it will automatically restore it.

sinspot1 wrote:
Sorry if these are easy questions.

Dont be sorry, they're my favorite type.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 11:06 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
From the release news at http://mysettopbox.tv/
Quote:
Please read tjc's guide to upgrade to R5D1 before upgrading.

http://mysettopbox.tv/phpBB2/viewtopic.php?t=11293


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 11:13 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Auto upgrade is how I got from R5A22 to R5C7 and from there to R5D1. Actually I've upgraded, downgraded, sidegraded, samegraded, regraded, ... I don't think I've done a scratch install on anything but test hardware in well over a year now, and I can't even begin to tell you how many *grades I've done in that time.

The ultimate answer to most of these questions is in the script themselves. While I normally think this is a cop out, even if you don't know jack about shell scripting the restore sript is full of information, about a 1/3 to 1/2 of its lines are either comments or messages that make it really obvious what is going on. For example:
Code:
# If the backup file file exists start the DB restore and upgrade
if [ -f "$BACKUP_SQL" ] ; then
    echo "Starting the DB restore, this can take a while..."
    echo "Clearing out the existing skeleton..."
    mysql -u root $DATABASE < $DROP_SQL
    echo "Recreating the db..."
    mysqladmin -u root create $DATABASE
    echo "Restoring the data (long)..."
    mysql -u root $DATABASE < $BACKUP_SQL
    echo "Doing any needed updates..."
    [ -n "$UPDATE_SQL" -a -f "$UPDATE_SQL" ] &&
        mysql -u root $DATABASE < $UPDATE_SQL
    echo "Completed the DB restore."
fi

I figure that's pretty clear... ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 7:47 am 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
Thanks that seem pretty clear. Where did that script come from? Is that from the mythrestore script or some where else. I would like to learn more about scripting incase I want to delete my system and reinstall to test some new hardware or configuration.


Thanks again.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 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