Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

velero

БесплатноБез исполняемых скриптовНе проверен

Velero is an open-source tool that backs up and restores Kubernetes cluster resources and persistent volumes to object storage. Use this skill when a user…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Velero

Overview

Velero (formerly Heptio Ark, now at github.com/velero-io/velero; latest 1.18.x) has two parts: a server running in the cluster (namespace velero) and a local velero CLI. Backups are stored in a BackupStorageLocation (an object-storage bucket). Volume data is captured one of three ways: CSI or provider snapshots, file system backup (Kopia, run by the node agent; works for almost any volume type, including NFS and emptyDir; restic is deprecated), or the CSI snapshot data mover (--snapshot-move-data). Cloud integrations are plugins whose version must match Velero (plugin 1.14.x for Velero 1.18.x).

Instructions

  1. Install the CLI. Prefer a package manager:
brew install velero            # macOS and Linuxbrew
choco install velero           # Windows

Or download a release and verify the checksum before extracting:

VER=v1.18.4
curl -sLO https://github.com/velero-io/velero/releases/download/$VER/velero-$VER-linux-amd64.tar.gz
curl -sLO https://github.com/velero-io/velero/releases/download/$VER/CHECKSUM
sha256sum -c --ignore-missing CHECKSUM
tar -xzf velero-$VER-linux-amd64.tar.gz
sudo install velero-$VER-linux-amd64/velero /usr/local/bin/velero
velero version --client-only
  1. Install the server (the Helm chart is the other supported method). AWS, with credentials taken from environment variables:
printf '[default]\naws_access_key_id=%s\naws_secret_access_key=%s\n' \
  "$VELERO_AWS_ACCESS_KEY_ID" "$VELERO_AWS_SECRET_ACCESS_KEY" > credentials-velero

velero install \
  --provider aws \
  --plugins velero/velero-plugin-for-aws:v1.14.4 \
  --bucket northwind-velero-backups \
  --backup-location-config region=eu-west-1 \
  --snapshot-location-config region=eu-west-1 \
  --secret-file ./credentials-velero \
  --use-node-agent \
  --wait
rm credentials-velero

GCP: --provider gcp --plugins velero/velero-plugin-for-gcp:v1.14.4 --bucket NAME --secret-file ./gcp-sa.json. With IAM roles or workload identity use --no-secret instead of a key file. Add --default-volumes-to-fs-backup to back up every pod volume with file system backup, or --use-volume-snapshots=false if there is no snapshot provider.

  1. Back up with velero backup create NAME and the filters --include-namespaces, --exclude-namespaces, --selector, --include-resources / --exclude-resources (format resource.group, e.g. deployments.apps), --ttl (default 720h), --snapshot-volumes=false, --default-volumes-to-fs-backup, --snapshot-move-data, --wait. Inspect with velero backup get, describe --details, logs.
  2. Schedule with velero schedule create NAME --schedule="0 2 * * *" (cron in UTC; @every 24h also works) plus the same filters. velero backup create --from-schedule NAME runs one now; velero restore create --from-schedule NAME restores the latest good run.
  3. Restore with velero restore create --from-backup NAME, optionally --include-namespaces, --include-resources, --namespace-mappings old:new, --existing-resource-policy update. Existing objects are skipped unless the policy is update. Check velero restore describe NAME --details.
  4. Volumes with file system backup: in opt-in mode annotate the pod (template) with backup.velero.io/backup-volumes: data; in opt-out mode (--default-volumes-to-fs-backup) skip volumes with backup.velero.io/backup-volumes-excludes. hostPath volumes are not supported (local is).
  5. To migrate, install Velero in the destination cluster against the same bucket (or add it as a --access-mode ReadOnly location), wait until velero backup get lists the source backups, then restore.

Examples

Nightly backup of production with 30-day retention

velero schedule create prod-nightly \
  --schedule="0 2 * * *" \
  --include-namespaces production,database \
  --default-volumes-to-fs-backup \
  --ttl 720h
velero backup create prod-first-run --from-schedule prod-nightly --wait
velero backup describe prod-first-run --details

Result: Phase: Completed, with the pod volume backups listed under "Backup Volumes". The schedule itself produces names like prod-nightly-20261021020000.

Restore one namespace into a side-by-side copy

velero restore create shop-drill \
  --from-backup prod-nightly-20261021020000 \
  --include-namespaces production \
  --namespace-mappings production:production-drill
velero restore describe shop-drill --details
kubectl get pods -n production-drill

Result: the restore reaches Completed and the pods start in production-drill while production is untouched. A drill like this each quarter proves the backups work.

Migrate to a new cluster

# old cluster
velero backup create migrate-2026-10 --exclude-namespaces kube-system,velero \
  --default-volumes-to-fs-backup --wait

# new cluster (kubectl context switched), same bucket
velero install --provider aws --plugins velero/velero-plugin-for-aws:v1.14.4 \
  --bucket northwind-velero-backups
Полный SKILL.md на GitHub

Установить velero в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл velero?

Velero is an open-source tool that backs up and restores Kubernetes cluster resources and persistent volumes to object storage. Use this skill when a user needs to install Velero, back up namespaces or whole clusters, schedule automated backups, restore workloads after a failure, back up volumes with file system backup or snapshots, or migrate applications between clusters.

Как установить скилл velero?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл velero запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить velero с