<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">By default, keycloak uses H2 database
with data stored on filesystem inside
$KEYCLOAK_HOME/standalone/data directory. You can switch to other
database by configure datasource in standalone.xml or by switch to
Mongo model (see our documentation for more details).<br>
<br>
So unless you delete $KEYCLOAK_HOME/standalone/data directory, the
data should be persistent among restarts.<br>
<br>
Marek<br>
<br>
On 29/01/16 21:57, Martin Min wrote:<br>
</div>
<blockquote
cite="mid:CAKUZDO5Ljw90XKTPr56z_16yKxvXZ8Fcsggty0fmkKPOsKtKrA@mail.gmail.com"
type="cite">
<div dir="ltr">After I restarted my KeyCloak server, all my realm
and applications created are gone. Is that because the built-in
database H2 doesn't persist the data on disk? How to keep the
database after I restart the keycloak server?
<div><br>
</div>
<div>Thanks.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jan 29, 2016 at 1:48 AM, Marko
Strukelj <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mstrukel@redhat.com" target="_blank">mstrukel@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">No,
localhost should work fine.<br>
It's not Google's servers, but your browser that connects to
this url<br>
after being redirected from Google. So as long as your
browser can see<br>
it it should work.<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>