Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Keycloak database to Azure #3214

Closed
smerle33 opened this issue Oct 31, 2022 · 4 comments
Closed

Migrate Keycloak database to Azure #3214

smerle33 opened this issue Oct 31, 2022 · 4 comments
Assignees

Comments

@smerle33
Copy link
Contributor

As per @dduportal in #2915 (comment)_

@smerle33
Copy link
Contributor Author

Process :
Launch a docker container to handle the correct version of postgres :
$docker run -it --rm -v "$(pwd)"/datakeycloak:/data -w /data --entrypoint=bash postgres:12-alpine

Backup:
$pg_dump --clean --no-owner --host=keycloak.cwlcugggqkje.us-east-2.rds.amazonaws.com --username=postgres keycloak >/data/keycloak.sql

ssh tunnel to the new bdd:
$ssh -L 5432:newbddhostamazon:5432 internalserver

within the docker container :
$psql --host=host.docker.internal --username=postgres keycloak < /data/keycloak.sql

Update the secrets to match the new bdd.

@smerle33
Copy link
Contributor Author

We keep the issue open for 7 days before closing to keep the old database meanwhile, we will destroy it and close the issue at that time (wednesday 16 of november)

@smerle33
Copy link
Contributor Author

deleted today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants