Creating an online backup with the Cloud Pak for Data OADP backup and restore utility
You can create online backups of a Cloud Pak for Data instance with the Cloud Pak for Data OpenShift® APIs for Data Protection (OADP) backup and restore utility.
Before you begin
Online backup has the following requirements:
- Online backup and restore of a deployment that is running service versions from different Cloud Pak for Data releases is not supported.
- The Cloud Pak for Data control
plane is installed in a
single project (namespace).
For more information, see Installing the IBM Cloud Pak for Data control plane.
- The Cloud Pak for Data instance is installed in zero
or more tethered projects.
For more information about tethered projects, see Tethering projects to the IBM Cloud Pak for Data control plane.
- The minimum deployment profile of IBM Cloud Pak foundational services is
Small.For more information about sizing IBM Cloud Pak foundational services, see Hardware requirements and recommendations for foundational services.
- The Cloud Pak for Data
OADP backup and restore utility is
installed and configured.
For more information, see Installing Cloud Pak for Data OADP backup and restore utility components.
If the IBM Knowledge Catalog service is installed, and a lineage data import job is running at the same time as you are creating a backup, the job might fail. In this case, rerun the job.
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.
Backups are taken at the Cloud Pak for Data instance (tenant) level.
If service-related custom resources are manually placed into maintenance mode prior to creating an online backup, those custom resources will remain in the same state if the backup is restored. Taking these services out of maintenance mode must be done manually after the restore.
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.
Ensure that you source the environment variables before you run the commands in this task.
Procedure
Results
Two OADP backups are created: a volume backup and a Kubernetes resources backup.
What to do next
cpd-cli oadp backup posthooks --hook-kind=checkpoint --tenant-operator-namespace=${PROJECT_CPD_INST_OPERATORS}If you have services that connect to an external database, such as for business intelligence (BI) reporting, it is recommended that you also back up the database. Backing up the external database ensures data consistency if the Cloud Pak for Data backup is later restored. For example, you need to restore an older Cloud Pak for Data backup instead of the most recent backup. The external database is synchronized with the most recent Cloud Pak for Data backup, so it has data that is not in the backup that you want to restore. To maintain data consistency, you need to restore the external database backup that was taken at the same time as the Cloud Pak for Data backup.