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