Re: mythtv backup on upgrade

Top Page

Reply to this message
Author: Tilo Werner
To: dmo-discussion
Subject: Re: mythtv backup on upgrade
Hi Ross Boylan,

please consider making backups of your mythtv database, although in your case it
will be for future upgrades to not mess up your database.

There is a backup script that comes with mythtv, have a look at:

Use it as part of your backup cycle or as standalone solution on a daily/weekly


PS: I managed it to keep my database since nearly 7 years running on different
hardware, distributions and of course mythtv versions.

| Total Running Time: 6 years 11 months 9 days 18 hrs 16 mins

Am Samstag, 11. August 2012, 20:38:24 schrieb Ross Boylan:
> On Sat, 2012-08-11 at 20:11 +0200, Christian Marillat wrote:
> > Ross Boylan <ross@???> writes:
> > > Should the myth, as packaged, make a backup of my database before
> > > upgrading? On the myth list someone said myth does, but I can't see
> > > one anywhere (from 0.24.2 to 0.25).
> >
> > Nothing. This feature should be managed by mythtv.
> I think this means the deb packaging/install scripts do nothing, but the
> upstream code that makes a backup should be intact. Is that right?
> Notice my question was about myth as packaged, not just the packaging
> for myth.
> > > A lot went wrong with the upgrade, including an initial failure to
> > > connect to the database (I believe by the deb install scripts) and then
> > > an inability to upgrade the database schema.
> >
> > Packages doesn't modify any schema database. All database schema are
> > managed by mythtv.
> Again, I assume this means the packaging scripts down't modify the
> schema, since the program itself does.
> I think my current problems are mostly a result of running out of space
> and the upstream code, with the only packaging element being that I was
> able to avoid reinstalling the mythvideo package because it's separate.
> Here's what I think happened:
> 1) install 0.24.2, including the mythvideo package, and run out of room
> on disk in the middle of mythvideo running DoVideoDatabseSchemaUpgrade()
> code in dbcheck.cpp of mythvideo.
> 2) remove packages and expand disk.
> 3) Reinstall 0.24.2 packages, NOT including mythvideo.
> 4) run this for awhile.
> 5) Upgrade to 0.25, with various problems. In particular it detects
> that mythvideo.DBSchemaVer is at 1011, while the minimum acceptable for
> upgrade is 1016.
> I think I'm going to try reinstalling the 0.24.2 packages, including
> mythvideo, and run them in hopes of moving the mythvideo schema into the
> present. Then I'll try the upgrade again.
> Ross
> Ross