mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
18 lines
541 B
Plaintext
Executable File
18 lines
541 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
source /assets/functions/00-container
|
|
prepare_service single
|
|
prepare_service 03-monitoring
|
|
PROCESS_NAME="db-backup"
|
|
output_off
|
|
|
|
if var_true "${CONTAINER_ENABLE_MONITORING}" && [ "${CONTAINER_MONITORING_BACKEND,,}" = "zabbix" ]; then
|
|
cat <<EOF > "${ZABBIX_CONFIG_PATH}"/"${ZABBIX_CONFIG_FILE}.d"/tiredofit_dbbackup.conf
|
|
# Zabbix DB Backup Configuration - Automatically Generated
|
|
# Find Companion Zabbix Server Templates at https://github.com/tiredofit/docker-dbbackup
|
|
# Autoregister=dbbackup
|
|
EOF
|
|
fi
|
|
|
|
liftoff
|