Werk #11810: mkbackup: Fix locking problems

Component Setup
Title mkbackup: Fix locking problems
Date Jun 30, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.6.0p25 2.0.0p8 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

On standard site installations, locks during mkbackup are now site specific. This results in multiple sites being able to be backed-up simultaneously. On appliances, a system-wide backup will still lock all sites regarding backup.

Version Limitations for Appliances: With this werk, the minimal required appliance version will be 1.4.16.

Technical Details: Werk 11868 tried to fix permission issues during mkbackup of different sites. However directories under /var/lock/ are volatile and therefore the creation and the setting of the rights on the mkbackup folder must be performed on every system (omd) restart. Therefore omd will now try to ensure that this folder exists and has the correct permissions.

Furthermore, the backup directory has been moved to /run/lock/mkbackup as this is the standard path for locks according to FHS.

To the list of all Werks