Create and Manage Volume Resource-Only Policies
A Volume Resource-Only Policy (VROP) enables you to back up Kubernetes volume resource specifications (PersistentVolumeClaim/PersistentVolume), which does not include the actual volume data. This exclusion-based approach is useful when volume data is protected externally or when you need to restore only the volume configuration to rebind to existing storage.
VROP functions as an exclusion policy. When you configure a VROP, you are defining rules for volumes that should not be included during the data backup process.
For example, if you select a volume type in the policy (for example, NFS), Portworx Backup does not include data backup for the matching NFS volumes. It backs up only their metadata (PVC/PV specs). Any volume type not specified in the policy undergoes a full data backup.
Manage policies
Portworx Backup provides options to create, view, edit, share, and delete VRO policies from the Policies page.
Create a policy
You can create VRO policies directly from the Portworx Backup web console.
-
Log in to the Portworx Backup web console.
-
From the left navigation pane, select Policies.
-
Click the Volume Resources-Only Policies tab.
-
Click Create VRO Policy.
-
In the Create Volume Resource-Only Policy (VROP) window, configure the following fields:
- VROP Name: Enter a descriptive name for the policy. Name cannot be changed later.
- VROP Labels: (Optional) Add labels as key-value pairs.
- Volume Types: Select the check boxes for the volume types you want to exclude from data backup. You can select one or more volume types:
- NFS: Select this to skip data backup for NFS volumes. Provide the NFS Server Details (name or IP address) to identify specific servers to skip. If no server details are provided, all NFS volumes are excluded from data backup.
- CSI: Select this to skip data backup for CSI-provisioned volumes. Provide the CSI Provisioner Name. If no provisioner name is provided, all CSI-provisioned volumes are excluded from data backup.
This volume type option is for modern Portworx CSI volumes (driver:
pxd.portworx.com). - Portworx Volumes: Select this to skip data backup for legacy in-tree Portworx volumes.
This volume type option applies to the legacy in-tree driver (
kubernetes.io/portworx-volume).
-
Click Create Policy.
Using REST API, Ansible, or Portworx CLI
For automation scenarios, you can create a VolumeResourceOnlyPolicy object using: