Velero Restore to PVC ‘vhub-pv’
To restore a backup to a PersistentVolumeClaim (PVC) named vhub-pv using Velero:
Prerequisites
- A Velero backup containing the PVC
vhub-pvexists. - The target namespace is available in the cluster.
Steps
-
List available backups:
velero backup get -
Restore the backup:
velero restore create --from-backup vhub-pv-backupReplace
vhub-pv-backupwith the name of your backup. -
Optionally, restore to a different namespace:
velero restore create --from-backup vhub-pv-backup \ --namespace-mappings <SOURCE_NAMESPACE>:<TARGET_NAMESPACE>
Verification
-
Check restore status:
velero restore get -
View restore details:
velero restore describe <RESTORE_NAME>