diff --git a/docs/modules/ROOT/pages/how-tos/upgrade-6.x-to-7.x.adoc b/docs/modules/ROOT/pages/how-tos/upgrade-6.x-to-7.x.adoc index b977229b..fae26e05 100644 --- a/docs/modules/ROOT/pages/how-tos/upgrade-6.x-to-7.x.adoc +++ b/docs/modules/ROOT/pages/how-tos/upgrade-6.x-to-7.x.adoc @@ -17,6 +17,14 @@ If you've configured custom values for any of those parameters, make sure to adj When upgrading the component, the following actions are required if the built-in database is used: . Make a backup of the built-in database. ++ +[source,bash] +---- +instance=keycloak +namespace=syn-${instance} + +kubectl -n "${namespace}" exec -ti keycloak-postgresql-0 -c keycloak-postgresql -- sh -c 'PGDATABASE="$POSTGRES_DB" PGUSER="$POSTGRES_USER" PGPASSWORD="$POSTGRES_PASSWORD" pg_dump --clean' > keycloak-postgresql-$(date +%F-%H-%M-%S).sql +---- . Apply the parameter changes.