You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdir ~/images
docker save ibmcase/icp-mariadb-backup | gzip > ~/images/icp-mariadb-backup-image-0.1.0.tgz
@ Move to master node if image is located on other nodes
docker load -i ~/images/icp-mariadb-backup-image-0.1.0.tgz
cd ~/icp-backup/src/mariadb-backup/1.0
source helper-functions.sh
mariadb_user=$(getMariaDBUser)
mariadb_password=$(getMariaDBPassword)
mysql --user=$mariadb_user --password=$mariadb_password --host=ms01
show databases ;
drop database icptest;
show databases ;
@ Recovery with backup image
9. Restore
cd ~/icp-backup/resources
kubectl delete job/icp-mariadb-restore
kubectl create -f icp-mariadb-restore-job.yaml # need to check PV
kubectl get pods -n default | grep mariadb
kubectl logs pod/icp-mariadb-restore-xxxxx
if you need selective restore, need to update the command line of job script