---
name: "velero-k8s-disaster-recovery-backup"
description: "Backup and migrate complete Kubernetes cluster state, metadata, and persistent volumes to S3."
metadata:
  author: "VMware Tanzu"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "backup k8s cluster velero"
  - "restore namespace velero"
  - "schedule velero backup s3"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Velero Kubernetes Disaster Recovery & Backup to S3

Administers disaster recovery with VMware Velero: creating scheduled backups, persistent volume snapshots (CSI / Restic), cross-region cluster migrations, and executing granular namespace restores.

## When to Invoke
Invoke this skill whenever you need to:
- backup k8s cluster velero
- restore namespace velero
- schedule velero backup s3

## Execution SOP & Rules
1. Install Velero CLI and install into cluster with target cloud provider plugins.
2. Create recurring backup schedule: velero schedule create daily-backup --schedule='0 2 * * *'.
3. Trigger immediate on-demand backup: velero backup create prod-backup --include-namespaces prod.
4. Execute restore: velero restore create --from-backup prod-backup --restore-volumes.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
