Creating IBM Software Hub volume snapshots
If you are using Portworx storage, you can back up all persistent volumes (PVs) in your IBM® Software Hub deployment by creating volume snapshots with the IBM Software Hub volume backup and restore utility.
Before you begin
To create snapshots, the cpd-cli backup-restore command-line interface requires a cluster administrator or similar role that is able to create, read, write, and delete Stork CRDs and other Kubernetes resources, such as deployments, StatefulSets, cronjobs, jobs, replicasets, configmaps, secrets, pods, namespaces, persistent volume claims (PVCs), and PVs.
To run snapshot-related commands, your cluster must also meet the following requirements:
- The minimum version of Portworx that IBM Software Hub supports. For more information, see Storage considerations.
To check the Portworx version, run the following commands:
PX_POD=$(oc get pods -l name=portworx -n kube-system -o jsonpath='{.items[0].metadata.name}') oc exec -it $PX_POD -n kube-system -- /opt/pwx/bin/pxctl --version - Stork 2.3.3 or later.
To check the Stork version, run the following commands:
STORK_POD=$(oc get pods -n kube-system -l name=stork -o jsonpath='{.items[0].metadata.name}') oc exec -it $STORK_POD -n kube-system -- /storkctl/linux/storkctl version
About this task
The cpd-cli backup-restore command-line interface creates a snapshot of the Portworx PVCs in your system at a particular moment in time. The interface backs up and restores volume data in the same project and installation, and assumes that Kubernetes objects are still in place.
Ensure that you source the environment variables before you run the commands in this task.
For more information about the IBM Software Hub volume backup and restore utility, including a list of commands that you can run, see the cpd-cli backup-restore reference documentation.