[mythtvnz] Upgrade/Reinstall tips

Rob Connolly rob at webworxshop.com
Mon Sep 23 22:46:13 BST 2013


On Mon, Sep 23, 2013 at 09:59:38PM +1200, Stephen Worthington wrote: 
> I have done clean installs of Mythbuntu several times now, and the
> procedure you are proposing is just how it works.  I do not have to
> backup my recordings, as they are on separate drives so I just mount
> them on the new system.  Make sure you use the official backup and
> restore procedure for the MythTV database:
> 
>   http://www.mythtv.org/wiki/Database_Backup_and_Restore
> 
> It is hard to get the right options if you try to do it yourself.

Yeah, I've actually been using that script as part of my routine backups
since just after I set up myth the first time. Seems to work pretty
well, though I've never had to restore from it.

Unfortunately, I do have to blow away the old system in order to remove
the aforementioned LVM setup. I put another disk in the system last
weekend and have already rsynced the recordings across.

> 
> Important: Before you create the backup of your database that you are
> going to restore to the new system, run a full check (and if
> necessary, repair) on the MySQL mythconverg database.  Backing up and
> restoring does not always work properly if any tables need repair.  I
> think you use mysqlcheck for that - in Mythbuntu you just select an
> option in the Mythbuntu Control Center and it sets up a daily cron job
> that does it automatically for you, so I do not need to do it
> manually.

Noted, thanks.

> 
> One thing I find that is invaluable is full access to all the
> customisations I have done on my old system - I normally have the old
> boot partition online so I can copy across all the bits and pieces I
> need to the new system.  There are endless little scripts I have
> written and so on.  You also need to preserve the config files in the
> home directory of your frontend user, in case they have been
> customised at all (eg setup for lirc for your remote, and for the
> tv_grab_nz-py script).  And there are likely to be a fair few things
> in /etc that you will need access to.  For example, one of the first
> things I do to any new Linux install is to add the config that makes
> matching of partial command lines in the history file work with the up
> and down arrow keys.  I never want to be without that.  So I need to
> be able to copy these commands:
> 
> "\e[A": history-search-backward
> "\e[B": history-search-forward
> 
> from the end of /etc/inputrc to the new system.
> 

I have pretty good backups already (using rsnapshot once daily), but
I'll probably do a full backup of the old system partition to my spare
drive just incase I missed something. Better to be safe than sorry!

BTW, have a look at etckeeper for keeping config files in order using
git. Very useful!

Cheers,

Rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20130924/4448fccf/attachment.pgp>


More information about the mythtvnz mailing list