From 0bae5505200cc134f03131fa2fe57fa4934b70af Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 5 Sep 2021 20:25:02 +0200 Subject: [PATCH] root: include authentik version in backup naming Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index c5bf7a5e8..93417192d 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -372,7 +372,7 @@ CELERY_RESULT_BACKEND = ( # Database backup DBBACKUP_STORAGE = "django.core.files.storage.FileSystemStorage" DBBACKUP_STORAGE_OPTIONS = {"location": "./backups" if DEBUG else "/backups"} -DBBACKUP_FILENAME_TEMPLATE = "authentik-backup-{datetime}.sql" +DBBACKUP_FILENAME_TEMPLATE = f"authentik-backup-{__version__}-{{datetime}}.sql" DBBACKUP_CONNECTOR_MAPPING = { "django_prometheus.db.backends.postgresql": "dbbackup.db.postgresql.PgDumpConnector", }