velero

Kubernetes cluster backup and restore

TLDR

Create backup
$ velero backup create [backup-name]
List backups
$ velero backup get
Restore from backup
$ velero restore create --from-backup [backup-name]
Schedule backup
$ velero schedule create [daily] --schedule="0 1 * * *"
Describe backup
$ velero backup describe [backup-name]
Delete backup
$ velero backup delete [backup-name]
List restores
$ velero restore get
Install Velero
$ velero install --provider [aws] --bucket [bucket-name]

SYNOPSIS

velero command [options]

DESCRIPTION

velero provides backup and restore capabilities for Kubernetes clusters. It captures cluster resource definitions and persistent volume snapshots, storing them in cloud object storage such as S3, GCS, or Azure Blob Storage.Backups can be created on demand or automated with cron-based schedules. Restores recreate resources from backups, supporting both full cluster recovery and selective restoration by namespace or resource type. The tool is commonly used for disaster recovery, cluster migration, and pre-upgrade snapshots.

PARAMETERS

backup create NAME

Create backup.
backup get
List backups.
restore create
Restore from backup.
schedule create NAME
Create schedule.
--from-backup NAME
Source backup.
--schedule CRON
Cron schedule.
--include-namespaces NS
Limit namespaces.
--provider PROVIDER
Storage provider.

INSTALL

sudo pacman -S velero
sudo zypper install velero
brew install velero
nix profile install nixpkgs#velero

CAVEATS

Requires object storage. Volume snapshots depend on provider. Some resources excluded by default.

HISTORY

Velero (formerly Heptio Ark) was created for Kubernetes backup. Now maintained by VMware as part of the Tanzu portfolio.

SEE ALSO

kubectl(1), restic(1)