Skip to content

Commit

Permalink
Add an example how to do a manual postgresql DB backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Mainberger committed Apr 8, 2022
1 parent 288da67 commit 7fb3935
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/modules/ROOT/pages/how-tos/upgrade-6.x-to-7.x.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 7fb3935

Please sign in to comment.