Backing up your custom resources

Create a full backup of your custom resources that can help you to roll back your upgrade if needed.

About this task

Before you start the upgrade of Cloud Pak for Business Automation, you must back up your custom resource. You require the custom resource if you want to roll back to a previous version after an upgrade.

Procedure

  1. Log in to the target cluster from a client.
    oc login https://<CLUSTERIP>:<port> -u <ADMINISTRATOR>
  2. Run the following command if you have Cloud Pak for Business Automation multi-patterns in your deployment.
    oc get icp4acluster icp4adeploy -n <project_name> -o yaml > ibm-cp4a-backup-cr.yaml

    Where <project_name> is the target namespace.

    Run the following command if you have only FileNet® Content Manager in your deployment.
    oc get content content -n <project_name> -o yaml > ibm-cp4a-backup-cr.yaml 

    Where <project_name> is the target namespace.