Backing up your environments

Create a full back up of volumes and configuration files that can help you roll back your upgrade if needed.

About this task

To back up your environment for an upgrade, complete the following steps.

Procedure

  1. For all patterns, you can back up your environment. For more information, see Backing up your environments in 21.0.3. For more information on backing up your environment in 22.0.2, see Backing up your environments in 22.0.2.
    Note: If your Cloud Pak for Business Automation includes Business Automation Insights, then you do not need to create Flink savepoints when you are backing up your databases. You can create Flink savepoints when migrating data from Elasticsearch to OpenSearch.
  2. For 21.0.3, if you are using IBM Business Automation Workflow Authoring, you must do the following steps. The IBM Business Automation Workflow Authoring database and the Business Automation Studio database are merged in this release.
    1. To export your Business Automation Studio data before you upgrade, run the following command:
      https://<bastudio_url>/bas/bpm/explorer/?url=https://<bastudio_url>/bas/artmgt/docs#/Cp4BA%20Migration/migrateExport
    2. To get the URL to Business Automation Studio, run the following command where <CR_name> is replaced with the metadata.name property from the Cloud Pak for Business Automation CR:
      oc describe configmaps <CR_name>-cp4ba-access-info
      The bastudio_url can be found under the bastudio-access-info section.
    3. The migrateExport API command redirects you to the Swagger page. Click Try it out and then Execute. Make sure that the status is 204 and then open the logs. After you run migrateExport, validate that the export is successful. You can also find the exported files and logs from the PVC that is used to store the Business Automation Studio server dump files, for example, <CR-name>-bastudio-dump-pvc.
      oc project my_project
      oc exec -it `oc get pod|grep icp4adeploy-bastudio-deployment | awk '{print $1}'` -\- grep ended \
      /opt/ibm/wlp/output/defaultServer/dump/BasMigration/export.log
    4. In the log, look for the following messages.
      –
      Defaulted container "bastudio-container" out of: bastudio-container, ssl-initcontainer
      (init), pfs-db-compatibility-checking (init), folder-prepare-container (init)
      INFO: com.ibm.bpm.bas.migration.BasMigrationOrchestrator - Export
      migration ended
      –

What to do next

Go to and complete the steps in Backing up your custom resources.