Post backup hook timing when using CSI snapshots #8852
-
I am looking to perform Velero backups leveraging CSI snapshots. As part of this, I need to perform an action once the VolumeSnapshots are created, basically once the backup is in WaitingForPluginOperations phase. I wanted to confirm that the post backup hook does run at this point, and does not wait until the backup is in the finalized/completed phase. I believe this is the case but looking to confirm this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
After introducing the ItemBlock, this may not be true. The post hook of backup should run after the ItemBlock's resource backup completion, not necessary when the whole backup entering the finalizing state. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response and the link. This is in line with what I needed for the backup for those specific PVCs. |
Beta Was this translation helpful? Give feedback.
After introducing the ItemBlock, this may not be true.
If you are interested in this topic, please refer to this document https://github.com/vmware-tanzu/velero/blob/main/design/Implemented/backup-performance-improvements.md
The post hook of backup should run after the ItemBlock's resource backup completion, not necessary when the whole backup entering the finalizing state.