From a83955bba0e403e279b38ec7088f527b63b6754f Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 10 May 2021 11:33:37 +0200 Subject: [PATCH] add backup/restore information --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9cbce30..146c3cb 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,25 @@ kubectl exec -n opennebula -i -c oned -- sh -c 'zcat | mysql -h$ then disable debug +## Upgrade notes + +``` +kubectl get pod -n opennebula -l role=leader +``` + +Perform backup: +``` +kubectl exec -n opennebula -c oned -- sh -c 'mysqldump -h$DB_SERVER -u$DB_USER -p$DB_PASSWD $DB_NAME | gzip -9' > opennebula-db.sql.gz +``` + +**To restore**, redeploy release with `--set oned.debug=true` and: +``` +kubectl exec -n opennebula -i -c oned -- sh -c 'zcat | mysql -h$DB_SERVER -u$DB_USER -p$DB_PASSWD -D$DB_NAME' < opennebula-db.sql.gz +``` + +then disable debug + + ## Upgrade notes The minor upgrades can be performed by standard way using rolling update, however major updates must be performed by fully chart reinstallation.