Digital ID
Latest

Keycloak Backup

📆
🏷
, , ,

purpose and application

Use this procedure when you want to backup keycloak.

definitions

None.

steps

  1. stop keycloak rcctl stop keycloak
  2. become keycloak user su -s /bin/ksh -l _keycloak
  3. change into keycloak basedir cd keycloak
  4. export realms bash bin/kc.sh export --file ../backup/keycloak-$(date +%Y%m%dT%H%M%S)

Resources

https://www.keycloak.org/server/importExport