Getting Started with Backup & Recovery¶
This guide provides an overview of the Backup & Recovery service and explains the steps you need to take to ensure your application's persistent data is protected.
How Backups Work¶
The platform uses a centralized Velero instance to perform regular, automated backups of your applications. This process captures two distinct types of data:
-
Kubernetes Resources (Backed Up by Default): The service automatically discovers and backs up the Kubernetes resources in your namespace. This includes your
Deployments,StatefulSets,ConfigMaps,Secrets,Services, and other manifests. This ensures the entire declarative configuration of your application is saved. -
Persistent Volume Data (Opt-In Required): The data stored inside your
PersistentVolumeClaims(PVCs) is not backed up by default. You must explicitly opt-in to have your persistent data included in the backup.
How to Back Up Persistent Volume Data¶
To enable backups for your application's persistent data, you must add a
specific annotation to your Deployment or StatefulSet's pod template.
- Annotation:
backup.velero.io/backup-volumes: <volume-name>
This annotation tells Velero which volumes attached to your pod should be
included in the file-system level backups. Use the volume names from the pod
spec, not the names of the PersistentVolumeClaims. For all annotations and
labels you can use, see the
Velero Annotations reference.
For a detailed, in-context example of how to apply this annotation to a
StatefulSet, including the correct syntax for single or multiple volumes,
please see the "Backing Up Persistent Volumes" section in our comprehensive
guide:
How to Restore from a Backup¶
Restores are managed by the platform team to ensure they are performed safely and correctly.
To request a restore of your application or its data from a backup, follow Requesting a Restore. It lists the information to include and the restore options. Our team will then coordinate with you to execute the restoration process.
Next Steps¶
- Reference: Velero Annotations lists the annotations and labels for volume selection, resource exclusion, and backup and restore hooks.