From ed41b0f113af7bf99ca1aebb8342466e91e8254e Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 19 Sep 2024 22:12:41 +0200 Subject: [PATCH] add backup restore hook --- compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yml b/compose.yml index d8fb72e..448d3bc 100644 --- a/compose.yml +++ b/compose.yml @@ -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