Custom backup and restore workflows
When you protect an application with Backup & Restore service, a default backup and restore workflow is used to protect an application. But while the backup and restore workflow is sufficient for some applications, there are some instances where you need to create a custom workflow for the backup and restore process.
- The default backup workflow that is used by the Backup & Restore service is as follows:
- Backup all namespace-scoped resources that are associated with the application and any dependent cluster-scoped resources.
- Run any
Velero pre-backup
hooks that are specified through pod annotations in an arbitrary order. - Create snapshots of all PVCs associated with the application.
- Run any
Velero post-backup
hooks that are specified through pod annotations in an arbitrary order. - If the backup policy specifies backup to an object storage, then copy the data to object storage.
- The default restore workflow that is used by the Backup & Restore service is as follows:
- Restore all PVCs.
- Restore all resources in an arbitrary order.
- Run
Velero post-restore
hooks that are specified through pod annotations in an arbitrary order.
You need a recipe to create a custom workflow for the backup and restore process. For more information, see Creating a Recipe.