vmware-tanzu / velero-plugin-for-vsphere

Plugin to support Velero on vSphere
Other
58 stars 50 forks source link

Exclude pv from backup #561

Open alexsteeel opened 7 months ago

alexsteeel commented 7 months ago

Describe the problem/challenge you have

I can't exclude pv from backup. Label velero.io/exclude-from-backup=true on PV does not working (Resource filtering). Similar issue with detailed description is velero still backup a pv with exclude label #5507.

Describe the solution you'd like

Add the ability to exclude pod volume from backup using an annotation backup.velero.io/backup-volumes-excludes= like in restic Using the opt-out approach

KlavsKlavsen commented 4 months ago

It seems this is a bug. if we trigger same backup - from cli (instead of schedule triggering it) - then it does indeed use the label - and excludes those PVs - https://github.com/vmware-tanzu/velero/issues/5507#issuecomment-1982807303