You can create an offline backup of an entire IBM Cloud Pak® for Data deployment with the OpenShift® APIs
for Data Protection (OADP) backup and restore utility. The Cognos®
Analytics service instance requires extra steps before
restoring the offline backup on the same cluster.
Procedure
- Back up the instance of Cloud Pak for Data on the
source cluster.
- Delete all Cognos
Analytics service instances
and Cloud Pak for Data control namespaces.
export PROJECT_CPD_INSTANCE=${namespace}
export PROJECT_CPD_OPS=ibm-common-services
oc delete caserviceinstances --all -n ${PROJECT_CPD_INSTANCE} --ignore-not-found --wait
#if tethered_namespace is used for the caservice instances
oc delete caserviceinstances --all -n ${tethered_namespace} --ignore-not-found --wait
oc delete project ${tethered_namespace}
oc delete operandrequests -n ${tethered_namespace} --all
# Get custom resource (CR), delete finalizers and delete CR
oc get caservices -n ${PROJECT_CPD_INSTANCE}
oc patch caservices ca-addon-cr -n ${PROJECT_CPD_INSTANCE} -p '{"metadata":{"finalizers":[]}}' --type=merge
oc delete caservices -n ${PROJECT_CPD_INSTANCE} --all
- Delete the instance of Cloud Pak for Data on the
source cluster.
- Restore the instance of Cloud Pak for Data on the
same cluster.