add backup restore hook

This commit is contained in:
Moritz 2024-09-19 22:12:41 +02:00
parent 4f8b505e1e
commit ed41b0f113

View File

@ -146,6 +146,7 @@ services:
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/backup.sql"
backupbot.backup.volumes.database.path: "backup.sql"
backupbot.backup.volumes.redis: "false"
backupbot.restore.post-hook: 'psql -U authentik -d postgres -c "DROP DATABASE authentik WITH (FORCE);" && createdb -U authentik authentik && psql -U authentik -d authentik -f /var/lib/postgresql/data/backup.sql'
redis:
image: redis:7.4.0-alpine