[keycloak-user] Exporting a realm

Stian Thorgersen stian at redhat.com
Thu May 22 03:59:34 EDT 2014


To make sure that no changes are made while exporting, currently this is done at startup. It's initiated by setting some system properties:

For unencrypted export:

 # bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=<DIR TO EXPORT TO>

or for an encrypted export:

 # bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=zip -Dkeycloak.migration.zipFile=<FILE TO EXPORT TO> -Dkeycloak.migration.zipPassword=<PASSWORD TO DECRYPT EXPORT>

You can then re-import it by replacing -Dkeycloak.migration.action=export with -Dkeycloak.migration.action=import

It'll be made easier in the future ;)

----- Original Message -----
> From: "Stan Silvert" <ssilvert at redhat.com>
> To: keycloak-user at lists.jboss.org
> Sent: Wednesday, 21 May, 2014 7:44:49 PM
> Subject: [keycloak-user] Exporting a realm
> 
> I see from KEYCLOAK-309 that exporting a realm has been implemented.
> 
> How do I actually do this?  Maybe I'm just blind, but I don't see
> anything in the UI.  Is there a command line tool for it?
> 
> Stan
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
> 


More information about the keycloak-user mailing list