I run two checkmk sites, second is kind of a hot DR with notifications disabled. I take a backup of the prod site with omd backup and do an omd restore on the DR to keep it in sync. I recently updated both of them from 1.6.0p10 to 1.6.0p14 and then did a cleanup to get rid of p10. Now when I backup the prod site and try to restore to DR, it fails saying p10 has to be installed. But the prod site is p14 so why is it saying it needs p10? Do you really need to keep all your old versions after an update?
I would understand that my old backups might require this, but why a fresh backup taken after the update?
I have no real good idea what you can do. Only one test would be to create a new empty site on your productive system, make a backup from this empty site and try to restore this backup to the other server.
If there comes the same error, something on your productive system is wrong.
I have verified the same issue on another environment that I built fresh with p10, created a site, upgraded to p14, took a backup and then tried to restore on a different server built in the same way and it still errors saying p10 needs to be installed. At this point I would call this a bug, is there anyway to report this or just hope its seen in the forum?
I tried to reproduce your problem, without success. My steps:
Setting up in AWS: Ubuntu 18.04 with defaults
Installing v1.6.0p10 CEE
omd create test
Installing v1.6.0p14 CEE
omd update test
omd backup test test.tgz
Copy test.tgz to second AWS instance (with installation of first v1.6.0p10 CEE, then v1.6.0p14 CEE)
omd restore test.tgz -> successful
On the restore target host, what does ‘omd versions’ say as root?
@Dirk
In this specific example yes, but if you see in my original post the backup was taken after an upgrade and it still said it required the previous version to be installed. If you have to keep every single version installed for backups to work, thats not ideal?
@dennis.ehmer
In this specific example I was restoring to the same host just to reproduce the error. What happens if you need to restore a backup from before your last update? does performing a site update render all historical backups obsolete?
My workaround is to manually extract the site backup and rsync the conf.d/wato files to restore the config, I have not run into any issues so far.
Backups are only util if you still have the checkmk server software available for the backup’s version. You have to take care of this yourself as a backup does not contain the checkmk server software.
Best practise can be e.g. to make a backup directly after upgrade, so that you can remove old backups and the old checkmk server software.