LinuxCommandLibrary

velero

Kubernetes cluster backup and restore

TLDR

Create backup

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community