Kubernetes Backup with Velero
Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.
Rohit Ghumare
@rohitg00
Install
$ openclaw skills install @rohitg00/k8s-backupKubernetes Backup with Velero
Manage backups and restores using kubectl-mcp-server's Velero tools.
Requires the
backuptoolset: start kubectl-mcp-server with--toolsets default,backup(orMCP_TOOLSETS=default,backup).
When to Apply
Use this skill when:
- User mentions: "backup", "restore", "Velero", "disaster recovery", "DR"
- Operations: creating backups, restoring namespaces, migration
- Keywords: "protect", "recover", "migrate", "snapshot"
Priority Rules
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Verify Velero installation first | CRITICAL | detect_ecosystem |
| 2 | Check backup location before create | HIGH | list_backup_locations |
| 3 | Wait for backup completion | HIGH | get_backup |
| 4 | Test restores to non-prod first | MEDIUM | create_restore |
Quick Reference
| Task | Tool | Example |
|---|---|---|
| Detect Velero | detect_ecosystem | detect_ecosystem() |
| List backups | list_backups | list_backups() |
| Create backup | create_backup | create_backup(name, namespaces) |
| Restore | create_restore | create_restore(name, backup_name) |
Check Velero Installation
detect_ecosystem()
list_backup_locations()
Create Backups
create_backup(
name="my-backup",
included_namespaces=["default", "app-namespace"]
)
create_backup(
name="app-backup",
included_namespaces=["default"],
snapshot_volumes=False
)
create_backup(
name="config-backup",
included_namespaces=["default"],
excluded_namespaces=["kube-system"]
)
create_backup(
name="daily-backup",
included_namespaces=["production"],
ttl="720h"
)
List and Describe Backups
list_backups()
get_backup(name="my-backup")
Restore from Backup
create_restore(
name="my-restore",
backup_name="my-backup"
)
create_restore(
name="my-restore",
backup_name="my-backup",
restore_pvs=False
)
create_restore(
name="config-restore",
backup_name="my-backup",
included_namespaces=["default"]
)
create_restore(
name="partial-restore",
backup_name="my-backup",
excluded_namespaces=["kube-system"]
)
List and Monitor Restores
list_restores()
get_restore(name="my-restore")
Scheduled Backups
list_backup_schedules()
list_backup_schedules(namespace="velero")
kubectl_apply(manifest="""
apiVersion: velero.io/v1
kind: Schedule
metadata:
name: daily-backup
namespace: velero
spec:
schedule: "0 2 * * *"
template:
includedNamespaces:
- production
ttl: 720h
""")
Disaster Recovery Workflow
Create DR Backup
from datetime import datetime
create_backup(
name=f"dr-backup-{datetime.now().strftime('%Y%m%d-%H%M%S')}",
included_namespaces=["production"]
)
get_backup(name="dr-backup-20260130-120000")
Restore to New Cluster
detect_ecosystem()
list_backups()
create_restore(
name="dr-restore",
backup_name="dr-backup-..."
)
get_restore(name="dr-restore")
Prerequisites
- Velero: Required for all backup tools
velero install --provider aws --bucket my-bucket --secret-file ./credentials
Related Skills
- k8s-multicluster - Multi-cluster operations
- k8s-incident - Incident response
Top skills in this category
API Gateway
@byungkyuCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, etc.
Marketing Mode
@thesethroseMarketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.
Blogwatcher
@steipeteMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Marketing Skills
@jchopard69Access 23 marketing modules offering checklists, frameworks, and ready-to-use deliverables for CRO, SEO, copywriting, analytics, launches, ads, and social me...
diagram-generator
@matthewyinGenerate and edit diagrams with the mcp-diagram-generator MCP server. Use this skill for new diagrams, existing .drawio/.mmd/.excalidraw edits, network topology, architecture, flowchart, swimlane, sequence, class, ER, and Excalidraw whiteboard work. Always use this skill when the user asks to draw,