Scripts used for my Dockerized CheckMK site
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