LinHES Forums
http://forum.linhes.org/

Qustion about Upgrading from 5C7 to 5D1
http://forum.linhes.org/viewtopic.php?f=11&t=11376
Page 1 of 1

Author:  sinspot1 [ Tue Aug 29, 2006 10:12 pm ]
Post subject:  Qustion about Upgrading from 5C7 to 5D1

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.

Author:  turpie [ Tue Aug 29, 2006 11:00 pm ]
Post subject:  Re: Qustion about Upgrading from 5C7 to 5D1

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.

Author:  Greg Frost [ Tue Aug 29, 2006 11:06 pm ]
Post subject: 

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

Author:  tjc [ Tue Aug 29, 2006 11:13 pm ]
Post subject: 

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... ;-)

Author:  sinspot1 [ Wed Aug 30, 2006 7:47 am ]
Post subject: 

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/