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"
- Identify backup pod name:
oc get pods | grep cp4s-backup-restore
-
oc
CLI tool provides two options:-
Copy command:
oc cp CP4S_POD_ID:/opt/data/backup LOCAL/CP4Sbackup`date +%Y-%m-%d`
- Rsync command:
oc rsync CP4S_POD_ID:/opt/data/backup LOCAL/CP4Sbackup`date +%Y-%m-%d`
-
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"}]
Was this topic helpful?
Document Information
Modified date:
11 January 2023
UID
ibm16580707