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
-
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.
- In the Red Hat® OpenShift® web console, in the header, click the plus icon to
open the Import YAML page.
- 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}
- 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.
- Click Create.
- 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}