Restoring CouchDB data for Maximo Assist

Use the operator that is provided by Maximo® Assist to restore the CouchDB data.

About this task

Use the API resource CustomResourceDefinitions to create the AssistRestore custom resource. To learn more about custom resource definitions, see CustomResourceDefinitions.

Procedure

  1. Use the operator to copy the specified backup file from the cloud object storage that is configured in Maximo Application Suite and restore the data to CouchDB.
    1. In the Red Hat® OpenShift® web console, in the header, click the plus icon to open the Import YAML page.
    2. Copy and paste the following content:
      apiVersion: apps.mas.ibm.com/v1
      kind: AssistRestore
      metadata:
        name: ${MAS_INSTANCE_ID}
        namespace: ${namespace}
        labels:
          app.kubernetes.io/instance: ${MAS_INSTANCE_ID}
          app.kubernetes.io/managed-by: ibm-mas-assist
          app.kubernetes.io/name: ibm-mas-assist
          mas.ibm.com/instanceId: ${MAS_INSTANCE_ID}
          mas.ibm.com/applicationId: assist
      spec:
        backupBucketName: ${mascos_bucket_name}
        backupFileName: ${mascos_file_name}
    3. Replace the variables with the values for your environment.
      ${namespace}
      The Maximo Assist namespace, which is typically mas-${MAS_INSTANCE_ID}-assist.
      ${mascos_file_name}
      The name of the backup file.
      ${mascos_bucket_name}
      The path to download the backup from cloud object storage.
    4. Click Create.
  2. Optional: Check the restore progress by entering the following command:
    oc get AssistRestore -n ${namespace}
    Check the status in the output.

What to do next

After the restore process is completed, delete the AssistRestore instance to avoid repeatedly triggering the CouchDB restore task.

oc delete AssistRestore ${MAS_INSTANCE_ID} -n ${namespace}