Hi,
we operate a Keycloak instance with quite a number of realms whereby each realm is managed by a different team.
How can we now restore a single realm (in case team accidentally deleted stuff or did other severe things) from a backup. We have continuous database backups but that doesn’t directly help, because we don’t want to restore everything but just a single realm.
I also came across kc export/import feature, but documentation says that servers must be shutdown for this, which is hard to do if we just want a single realm to be restored.
I thought about the following:
- Restoring database backup to a new database
- Configuring a dedicated export Keycloak instance against this database
- Not starting that instance but just doing a kc export of the realm I want to restore
- Now I configure that instance against the existing productive database, I do not start it but just do a kc import.
Will this work, especially the last step? Any other recommendations?
Björn