Database Restore #59
jlangy
announced in
Operations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
We use the following backup container in our instance to handle taking and restoring backups. Their readme covers this information in more depth.
The backup container pod in our namespaces can be found from the prefix
patroni-backup-storage
.Taking a backup
To take a backup, get a terminal to the backup pod, either through the UI or with
oc rsh <podname>
From the root directory, run the backup script with
./backup.sh -1
Restoring a backup
sso-keycloak
deployment.oc rsh
./backup.sh -r <DatabaseSpec/>
, using the database spec you got from the configmap.In addition to the above steps, you can run the
./backup.sh -r <DatabaseSpec/>
with a-f
flag to specify a specific backup file. To find a specific file, you can look in the/backups/<daily|weekly|monthly>
folder. You can also use./backup.sh -h
for more information on how to use the script.Beta Was this translation helpful? Give feedback.
All reactions