Creating an offline backup of a Cloud Pak for Data instance with Cognos Analytics deployed and restoring it on the same cluster

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

  1. Back up the instance of Cloud Pak for Data on the source cluster.
  2. 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
  3. Delete the instance of Cloud Pak for Data on the source cluster.
  4. Restore the instance of Cloud Pak for Data on the same cluster.