← 返回命令列表

Linux command

velero 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

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]

说明

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.

参数

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.

FAQ

What is the velero command used for?

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.

How do I run a basic velero example?

Run `velero backup create [backup-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does backup create _NAME_ do in velero?

Create backup.