diff --git a/authentik/core/tasks.py b/authentik/core/tasks.py index 844560550..280ac4ddd 100644 --- a/authentik/core/tasks.py +++ b/authentik/core/tasks.py @@ -60,7 +60,7 @@ def clean_expired_models(self: MonitoredTask): def backup_database(self: MonitoredTask): # pragma: no cover """Database backup""" self.result_timeout_hours = 25 - if SERVICE_HOST_ENV_NAME in environ and not CONFIG.y("postgresql.s3_backup"): + if SERVICE_HOST_ENV_NAME in environ and not CONFIG.y("postgresql.s3_backup.bucket"): LOGGER.info("Running in k8s and s3 backups are not configured, skipping") self.set_status( TaskResult(