Restore an old version of a site

Hello community!

I am in the process of updating Checkmk to 2.3. I have the following versions installed

omd versions
2.1.0p44.cre
2.2.0p30.cre
2.3.0p9.cre (default)

omd sites
SITE VERSION COMMENTS
cmk_test 2.3.0p9.cre default version

and I have a backup of version 2.1.0p44 that I want to restore.

  • How do I indicate that I want to restore to version 2.1.0p44?
  • What is the procedure to bring the backup to version 2.3?

Thanks

Hi Gonzalo,
upon entering omd update as the site-user, it will open a dialog where you can choose the target version. More information is in the documentation.

Make sure to have a recent backup of your sites before upgrading!

Regards,
Simon

What happens if you try to restore your site now?

$ omd versions
2.1.0p28.cme
2.1.0p43.cme
2.2.0p30.cme (default)

$ omd sites
SITE             VERSION          COMMENTS
corpnms          2.2.0p30.cme     default version
custnms01        2.2.0p30.cme     default version
custnms02        2.2.0p30.cme     default version

If you attempt a restore with an alternate sitename, it should create the newsite with the older version since it is still installed.

$ omd restore corpnms_restore /backups/corpnms_2.1.0p28_06052024-2329.tgz
Restoring site corpnms_restore from /backups/corpnms_2.1.0p28_06052024-2329.tgz...

If the correct version is not installed, it will prompt you to install it.

$ omd restore /backups/custnms01_2.0.0p15_06132023.tgz
You need to have version 2.0.0p15.cme installed to be able to restore this backup.
2 Likes

Thats not possible, the version the backup was created on needs to be restored to the same version, you can’t skip the update process by just restoring a backup :rofl:

once you have restored the backup you can upgrade your site, you need to follow the upgrade path in the documentation.

The easiest way is to copy your site to a new one, temporary and upgrade that first.

1 Like

thank you all for your suggestions. I will try as you advise.

Regards