Backing Up, Restoring, and Migrating Resources with Velero
Last updated
Last updated
Data protection is a chief concern for application owners who want to make sure that they can restore a cluster to a known good state, recover from a crashed cluster, or migrate to a new environment. With Velero, you have a production-grade backup solution for your Kubernetes cluster resources and applications.
Velero is an open source tool to safely back up and restore resources in a Kubernetes cluster, perform disaster recovery, and migrate resources and persistent volumes to another Kubernetes cluster.
Velero offers key data protection features, such as scheduled backups, retention schedules, and pre- or post-backup hooks for custom actions.
Here are some of the things you can do with Velero:
Back up your cluster and restore it in case of loss.
Recover from disaster.
Copy cluster resources to other clusters.
Replicate your production environment for development and testing environments.
Take a snapshot of your application's state before upgrading a cluster
Here are two videos that you can watch in sequence to see Velero in action. The following video demonstrates how Velero can back up and restore applications in Kubernetes clusters:
The following video demonstrates how Velero can migrate an application from one cluster to another:
Velero consists of two main components:
A server that runs on your cluster
A command-line utility that runs locally
Velero supports plug-ins. You can run Velero in clusters on a cloud provider or on premises.
Each Velero operation --- on-demand backup, scheduled backup, restoration --- is a custom resource that is defined with a Kubernetes custom resource definition, or CRD, and stored in etcd. Velero includes controllers that process the custom resources to back up and restore resources.
You can back up or restore all objects in your cluster, or you can filter objects by type, namespace, or label.