Repository navigation
How to Import & Export without downtime #31044
Unanswered
Christiaan-Mathu
asked this question in
Q&A
Replies: 1 comment 3 replies
|
Hi @jonkoops, I hope you're doing well! I just wanted to ask if you had any thoughts or opinions on the matter. Your insights would be greatly appreciated. Thank you in advance! |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone.
I'm seeking the best method to import and export a realm (including users, not just partial) without stopping the Keycloak server.
Here's what I've found and tried so far:
Official documentation: I've reviewed the export/import documentation, which states that "Your Keycloak server instance must not be started when invoking this command."
Exporting while server is running: In a dev environment, I attempted to run the export command without stopping Keycloak. The realm seemed to export fine, but I encountered errors afterwards because the server couldn't start in 'import/export' mode (as it was already running).
Database backup: Another approach I've tested is using a tool like pgAdmin for a DB backup. This method works, but I'm unsure of potential unforeseen consequences.
Third-party extension: I've come across this extension designed for this use case, but it's no longer maintained.
My main concern is finding a reliable method that doesn't risk data integrity or cause unexpected issues.
Any insights or best practices would be greatly appreciated. Thanks in advance for your help!
All reactions