IBM Support

Cloud Pak for Security: What tools can be used to copy backups?

Question & Answer


Question

What methods are there for copying backups in Cloud Pak for Security (CP4S)?

Cause

The recommended method for backing up Cloud Pak for Security is using the script backup-cp4s.sh.

Answer

kubectl CLI tool provides an option to copy files and directories to and from containers. However, file copy can also be accomplished with the Red Hat OpenShift commands.
Note: The following instructions are intended for the cp4s-backup-restore pod. Other pods would probably receive errors, such as:
time="<DATE>" level=error msg="exec failed: unable to start container process: exec: \"tar\": executable file not found in $PATH"
  1. Identify backup pod name:
    oc get pods | grep cp4s-backup-restore
  2. oc CLI tool provides two options:
    1. Copy command:
      oc cp CP4S_POD_ID:/opt/data/backup LOCAL/CP4Sbackup`date +%Y-%m-%d`
      Note: Where CP4S_POD_ID is the pod you would like to copy files from, similar to cp4s-backup-restore-1aaa11a1a-aaaaa. LOCAL the path you would like to copy to.
    2. Rsync command:
      oc rsync CP4S_POD_ID:/opt/data/backup LOCAL/CP4Sbackup`date +%Y-%m-%d`
      Note: Where CP4S_POD_ID is the pod you would like to copy files from, similar to cp4s-backup-restore-1aaa11a1a-aaaaa. LOCAL the path you would like to copy to.

Related Information

[{"Type":"MASTER","Line of Business":{"code":"LOB24","label":"Security Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSTDPP","label":"IBM Cloud Pak for Security"},"ARM Category":[{"code":"a8m3p0000000rbnAAA","label":"Administration Task"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
11 January 2023

UID

ibm16580707