ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

k8s-backup

Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.

Why use this skill?

Automate your Kubernetes disaster recovery and backup management with the k8s-backup skill. Easily create, list, and restore cluster snapshots using Velero integration.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/rohitg00/k8s-backup
Or

What This Skill Does

The k8s-backup skill provides an integrated interface for managing Kubernetes disaster recovery, data protection, and workload migration using Velero. It enables AI agents to automate the lifecycle of cluster snapshots, from initial discovery and configuration to complex backup execution and granular restoration. By abstracting the underlying CLI commands, this skill allows users to perform full namespace backups, filtered restores, and schedule automated protection policies without needing manual terminal interaction.

Installation

To integrate this capability into your agent, use the OpenClaw package manager: clawhub install openclaw/skills/skills/rohitg00/k8s-backup

Use Cases

  • Disaster Recovery: Execute emergency full-cluster snapshots during system instability and restore them to cold-standby or secondary clusters.
  • Workload Migration: Use namespace mapping features to move applications from staging to production environments, or between clouds.
  • Data Protection: Automate daily or hourly RPO/RTO goals using the scheduling features, ensuring data consistency for stateful applications.
  • Selective Restoration: Recover only specific ConfigMaps or Secrets after accidental deletion without rolling back the entire application stack.

Example Prompts

  1. "Create a daily backup of the production namespace and set a retention period of 30 days."
  2. "I need to restore the 'web-app' from the last backup but exclude all persistent volume claims to prevent overriding existing storage."
  3. "Can you check if Velero is correctly configured in this cluster and list all existing backups to confirm our disaster recovery plan is active?"

Tips & Limitations

  • Monitoring Status: Always monitor the backup status (InProgress, Completed, Failed) using the velero_backup_get_tool before attempting a restore operation to ensure data integrity.
  • Permissions: Ensure the service account running the OpenClaw agent has sufficient RBAC permissions to access Velero custom resources and the underlying cloud storage provider.
  • Resource Exclusions: Be cautious when using exclude_resources during restores; verify that excluding items like PVCs won't leave your application in a broken state due to missing mounts.
  • TTL Handling: Always define a TTL for your backups to prevent storage bloating in your object storage buckets.

Metadata

Author@rohitg00
Stars1133
Views0
Updated2026-02-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-rohitg00-k8s-backup": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#kubernetes#backup#velero#devops#cloud-native
Safety Score: 3/5

Flags: code-execution, external-api