Backing up the Cloud Pak for Data scheduling service

Important: IBM Cloud Pak® for Data Version 4.8 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.

Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.

If the Cloud Pak for Data scheduling service is installed, back up the service.

About this task

Permissions needed for this task
If you are running the utility in Kubernetes mode, log in as a user with cluster administrator rights.

If you are running the utility in REST mode, make sure that the REST client is configured so that a Cloud Pak for Data administrator can run backup and checkpoint commands.

For more information about the OADP backup and restore utility, including a list of commands that you can run, see the cpd-cli oadp reference documentation.

Best practice: You can run the commands in this task exactly as written if you set up environment variables. For instructions, see Setting up installation environment variables.

Ensure that you source the environment variables before you run the commands in this task.

Procedure

  1. Log in to Red Hat® OpenShift Container Platform as a cluster administrator.
    ${OC_LOGIN}
    Remember: OC_LOGIN is an alias for the oc login command.
  2. Back up the Cloud Pak for Data scheduling service:
    cpd-cli oadp backup create ${PROJECT_SCHEDULING_SERVICE}-b1 \
    --include-namespaces ${PROJECT_SCHEDULING_SERVICE} \
    --include-resources='namespaces,operatorgroups,configmaps,catalogsources.operators.coreos.com,subscriptions.operators.coreos.com,scheduling.scheduler.spectrumcomputing.ibm.com,customresourcedefinitions.apiextensions.k8s.io' \
    --skip-hooks \
    --log-level=debug \
    --verbose