Velero Backup Configuration for PVC ‘vhub-pv’
To back up a PersistentVolumeClaim (PVC) named vhub-pv using Velero:
Prerequisites
- Velero is installed and configured in your Kubernetes cluster.
- The PVC
vhub-pvexists in the target namespace.
Steps
-
Create a backup for the PVC:
velero backup create vhub-pv-backup \ --include-resources persistentvolumeclaims,persistentvolumes \ --selector 'claimName=vhub-pv' \ --namespace 'retagentmgr'or for the embeddings:
```sh velero backup create vhub-pv-backup
–include-resources persistentvolumeclaims,persistentvolumes
–selector ‘claimName=embedding-pv’
–namesp -
To back up the entire namespace (including the PVC):
velero backup create retagentmgr-namespace-backup \ --namespace 'retagentmgr'
Verification
-
Check backup status:
velero backup get -
View backup details:
velero backup describe vhub-pv-backup