Install
openclaw skills install @rohitg00/k8s-backupKubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.
openclaw skills install @rohitg00/k8s-backupManage 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).
Use this skill when:
| 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 |
| 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) |
detect_ecosystem()
list_backup_locations()
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_backups()
get_backup(name="my-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_restores()
get_restore(name="my-restore")
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
""")
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")
detect_ecosystem()
list_backups()
create_restore(
name="dr-restore",
backup_name="dr-backup-..."
)
get_restore(name="dr-restore")
velero install --provider aws --bucket my-bucket --secret-file ./credentials