Backup and Restore

Version 1 (brfransen, 01/22/2019 08:13 pm) → Version 2/8 (brfransen, 01/22/2019 08:13 pm)

h1. Backup and Restore

h2. Documentation

"Backup and Restore Scripts":http://knoppmyth.net/phpBB2/viewtopic.php?p=112490#112490

h2. Backup

h3. Menu

In KnoppMyth R5 under "MythTV Configuration" select "Backup".

In LinHES under "Service Menu" select "Backup LinHES".

h3. Command Line

Follow these steps to make a backup in KnoppMyth R5 (R5C7 and newer) and LinHES from LinHES. Follow the command line. Doing directions at the bottom of "Backup and Restore Scripts":http://knoppmyth.net/phpBB2/viewtopic.php?p=112490#112490 for KnoppMyth R5B7 and older.

* As root, run the backup command. I strongly recommend doing
this from the command line rather than through the menus menus. This will help you ensure that there aren't any undetected failures which will cause you grief later. Follow the directions at the bottom of "Backup and Restore Scripts":http://knoppmyth.net/phpBB2/viewtopic.php?p=112490#112490 for KnoppMyth R5B7 and older.

* As root (or sudo), run the backup command.

<pre>
sudo mythbackup
</pre>

* Make sure that the backup worked! The scripts automatically check and report their results but you have to pay attention. If you miss it, need to repeat the check for other reasons, or there is an error in the backup, run the following command as root and report the messages it produces:
<pre>
checkbackup
</pre>

* Check that you don't have multiple compression formats for a given backup filename which will cause confusion later using the following commands:
<pre>
ls -l /myth/backup/savedfiles.tar* /myth/backup/mythconverg.sql* |
sed '/\.[0-9]*$/d'
</pre>
It's OK if the savedfiles.tar and mythconverg.sql compression (or lack thereof) are different, however, the files should both show the same current date. On my system it produces these healthy results:
<pre>
root@black2:~# ls -l /myth/backup/savedfiles.tar* /myth/backup/mythconverg.sql* | sed '/\.[0-9]*$/d'
-rw------- 1 root root 23355203 Jun 4 23:45 /myth/backup/mythconverg.sql.gz
-rw------- 1 root root 24731079 Jun 4 23:45 /myth/backup/savedfiles.tar.gz
</pre>