/checkmk-docker

Scripts used for my Dockerized CheckMK site

Primary LanguageShellApache License 2.0Apache-2.0

checkmk-docker

Scripts used for my Dockerized CheckMK site

docker-checkmk-backup.sh

This is a script that I use via Cron to backup the CheckMK /omd/sites directory from within the Docker container

The script takes two mandatory arguments:

 -c | --container=<NAME>   = CheckMK Docker Container Name
 -d | --dest=<PATH>        = Destination path for the backup

Example:

$ ~/bin/docker-checkmk-backup.sh -c monitoring -d /backups/CheckMK

Example Cron to run nightly at midnight:

# Min  Hour  Day(Month)  Month  Day(Week)
# ---  ----  ----------  -----  ---------
0 0 * * * $HOME/bin/docker-checkmk-backup.sh -c monitoring -d /backups/CheckMK