10 lines
274 B
Bash
Executable file
10 lines
274 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#
|
|
# Helper script to export database
|
|
#
|
|
cp -rp /opt/keycloak/data/h2 /tmp
|
|
/opt/keycloak/bin/kc.sh export --file /opt/keycloak/data/import/testing.json --realm testing \
|
|
--optimized \
|
|
--db-url 'jdbc:h2:file:/tmp/h2/keycloakdb;NON_KEYWORDS=VALUE'
|
|
rm -rf /tmp/h2
|