flakrat / checkmk-docker

Scripts used for my Dockerized CheckMK site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Scripts used for my Dockerized CheckMK site

License:Apache License 2.0


Languages

Language:Shell 100.0%