add ENABLE_BACKUPS label

This commit is contained in:
Moritz 2024-10-22 17:28:22 +02:00
parent 3af308645e
commit d7b3c1e18e
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ TYPE=zammad
DOMAIN=zammad.example.com
TIMEOUT=600
ENABLE_BACKUPS=true
## Domain aliases
#EXTRA_DOMAINS=', `www.zammad.example.com`'

View File

@ -149,7 +149,7 @@ services:
restart_policy:
condition: on-failure
labels:
backupbot.backup: "true"
backupbot.backup: "${ENABLE_BACKUPS:-true}"
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.postgresql-data.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'