Creating an offline backup of Cloud Pak for Data with the OADP utility
You can create offline 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
To create Restic backups, if Cloud Pak for Data is
installed on NFS, NFS storage must be configured with
no_root_squash.
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.
When backup commands are run, some pods remain in a
Running state. These running pods do not affect the backup process, and you do not
need to manually shut them down.
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
What to do next
cpd-cli oadp backup posthooks --hook-kind=br --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.