Backups and point-in-time restore
How your tenant's database is backed up, how long backups are kept, and how to ask for a restore.
What we back up
Everything Keycloak keeps lives in your tenant's PostgreSQL database: realms, clients, users and their credentials, roles, groups, identity providers, keys and sessions. We back up that database in two ways:
- Continuous archiving. Every change is written to the database's write-ahead log, and we archive that log to object storage as it is written.
- A nightly full backup at 02:00 UTC, to the same storage.
Backups go to object storage in the same cloud and region as your tenant: Azure Blob Storage on Azure, Amazon S3 on AWS. The storage belongs to your tenant alone. Backups are kept for 30 days on Premium and Enterprise and 7 days on Starter.
We also take a backup before every upgrade, so the state just before it can always be restored.
Point-in-time restore
The nightly backups and the archived log together let us restore your database to any moment in that window (the last 30 days, or 7 on Starter), down to the second, not only to last night.
A restore replaces the whole tenant database:
- Every realm in the tenant returns to that moment. A single realm, user or client cannot be restored on its own.
- Everything after that moment is lost: new users, password changes, configuration changes, sessions.
- Keycloak is stopped while the restore runs, so sign-in is unavailable until it finishes.
Asking for a restore
Ask in writing, through the contact form or in the dashboard. Tell us:
- Your tenant's hostname.
- The moment to restore to, in UTC, for example
2026-11-20 14:05:00 UTC. Pick a time just before the mistake. - That you accept the loss of every change after that moment, in every realm of the tenant.
Before we touch your live tenant, we confirm with you in writing which moment we restore to and when the downtime starts.