Backup and migrate Kubernetes resources and persistent volumes
open sourceApache-2.0self-hostablefree
Velero (formerly Heptio Ark) backs up and restores Kubernetes cluster resources and persistent volumes, for disaster recovery, migrating workloads to another cluster and copying production into development and test clusters. A server runs in the cluster and a velero command-line client drives it; backups cover a whole cluster or a subset chosen by namespace or label, run on schedules with retention, and can call pre- and post-backup hooks. Resource backups go to object storage, and volumes are captured with cloud or CSI snapshots or copied at the file level with Kopia; plugins maintained by the project cover AWS, Google Cloud, Azure and vSphere, and the community maintains others. It's a CNCF sandbox project under Apache-2.0.
Ways to install
On Kubernetes
Package managers
Problems it solves
- back up everything in our Kubernetes cluster so we can rebuild it if the cluster is lost
- restore a namespace someone deleted by accident, including its persistent volumes
- move workloads and their data from one Kubernetes cluster or cloud to another
- copy production Kubernetes resources into a staging cluster for testing
- scheduled nightly backups of our cluster to S3 with a retention period
- back up persistent volume data on storage that has no snapshot support
- freeze the database before a volume snapshot and unfreeze it afterwards
- back up only the namespaces or labelled apps that matter instead of the whole cluster
- keep cluster backups in an S3-compatible bucket on our own hardware
- disaster recovery plan for stateful apps running on Kubernetes
- upgrade a Kubernetes cluster with a way back if it goes wrong
Features
- backups and restores of cluster resources and persistent volumes
- whole-cluster or partial backups by namespace or label selector
- scheduled backups with retention
- pre- and post-backup hooks and restore hooks
- cloud provider and CSI volume snapshots, including volume group snapshots
- file system backup of pod volumes with Kopia
- CSI snapshot data movement to object storage
- object store and volume snapshotter plugins for AWS, Google Cloud, Azure and vSphere
- community plugins for other clouds and storage systems
- resource filtering on backup and restore
View 2 more
- velero CLI and Helm chart installs
- IPv4, IPv6 and dual-stack clusters
Limitations
- Doesn't back up hostPath volumes with file system backup: local persistent volumes are supported4
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Velero does.
- Veeam Kasten Kubernetes data protection and application mobility
- K8up Kubernetes and OpenShift Backup Operator
