Backup and Restore

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

1 1
h1. Backup and Restore
2 1
3 1
h2. Documentation
4 1
5 1
"Backup and Restore Scripts":http://knoppmyth.net/phpBB2/viewtopic.php?p=112490#112490
6 1
7 1
h2. Backup
8 1
9 1
Follow these steps to make a backup in KnoppMyth R5 (R5C7 and newer) and LinHES.  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.
10 1
11 1
* As root, run the backup command. I strongly recommend doing this from the command line rather than through the menus. This will help you ensure that there aren't any undetected failures which will cause you grief later. 
12 1
<pre>
13 1
mythbackup
14 1
</pre>
15 1
16 1
* 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: 
17 1
<pre>
18 1
checkbackup
19 1
</pre>
20 1
21 1
* Check that you don't have multiple compression formats for a given backup filename which will cause confusion later using the following commands:
22 1
<pre>
23 1
ls -l /myth/backup/savedfiles.tar* /myth/backup/mythconverg.sql* | 
24 1
 sed '/\.[0-9]*$/d'
25 1
</pre>
26 1
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: 
27 1
<pre>
28 1
root@black2:~# ls -l /myth/backup/savedfiles.tar* /myth/backup/mythconverg.sql* | sed '/\.[0-9]*$/d' 
29 1
-rw------- 1 root root 23355203 Jun  4 23:45 /myth/backup/mythconverg.sql.gz 
30 1
-rw------- 1 root root 24731079 Jun  4 23:45 /myth/backup/savedfiles.tar.gz
31 1
</pre>