/gke-backup-dr
Configures GKE Backup Plans and restore workflows. Use for backup policies, disaster recovery, or GKE cluster restores. Don't use for database backups.
$ npx -y skills add google/skills --skill gke-backup-dr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/gke-backup-dr
Context preview
The summary Claude sees to decide when to auto-load this skill.
Configures GKE Backup Plans and restore workflows. Use for backup policies, disaster recovery, or GKE cluster restores. Don't use for database backups.
SKILL.md
gke-backup-dr.SKILL.mdname: gke-backup-dr
description: >-
Configures GKE Backup Plans and restore workflows. Use for backup policies,
disaster recovery, or GKE cluster restores. Don't use for database backups.
metadata:
category: Storage
GKE Backup & Disaster Recovery
Protects stateful GKE workloads using Backup for GKE. Backup for GKE natively captures both Kubernetes resource metadata (manifests, configurations, and secrets) and the underlying persistent volume (PV) data.
CLI Reference
# Enable GKE Backup addon (Slow cluster-level update)
gcloud container clusters update <CLUSTER_NAME> --enable-gke-backup --region <REGION> --quiet
# Create Backup Plan
gcloud container backup-restore backup-plans create <PLAN_NAME> \
--cluster=<CLUSTER_NAME> --location=<REGION> \
--retention-days=<DAYS> --cron-schedule="<CRON>" --all-namespaces --quiet
# Trigger Manual Backup
gcloud container backup-restore backups create <BACKUP_NAME> \
--backup-plan=<PLAN_NAME> --location=<REGION> --quiet
# Create Restore Plan
gcloud container backup-restore restore-plans create <RESTORE_PLAN_NAME> \
--cluster=<TARGET_CLUSTER_NAME> --location=<REGION> --backup-plan=<SOURCE_BACKUP_PLAN_NAME> \
--cluster-resource-conflict-policy=USE_EXISTING_VERSION --namespaced-resource-restore-mode=FAIL_ON_CONFLICT --quiet
# Execute Restore
gcloud container backup-restore restores create <RESTORE_NAME> \
--restore-plan=<RESTORE_PLAN_NAME> --backup=<BACKUP_NAME> --location=<REGION> --quiet
# Verify Restore Status
gcloud container backup-restore restores describe <RESTORE_NAME> --location=<REGION>
Best Practices
1. **CMEK Encryption**: Encrypt backup plans using Customer-Managed Encryption Keys: `--backup-encryption-key=<KEY>`. 2. **Scope**: Prefer backing up specific namespaces rather than the entire cluster: `--included-namespaces=<ns1>,<ns2>`. 3. **Application Consistency**: Recommend quiescing the database or pausing application writes (e.g. using pre-backup hooks or database-specific tools) prior to backups to ensure data integrity. 4. **CSI Volume Snapshots**: Ensure that stateful backups utilize GKE's CSI (Container Storage Interface) driver for volume snapshots to capture persistent volume data. 5. **Service Terminology**: Always explicitly refer to the service as **Backup for GKE** in your response. This distinguishes it from the broader (but complementary) Google Cloud **Backup and Disaster Recovery (DR) Service**, as **Backup for GKE** is built specifically for GKE.
Troubleshooting & Common Pitfalls (CRITICAL)
> [!IMPORTANT] **Slow Operations**: Enabling GKE Backup (`--enable-gke-backup`) > triggers a slow Google Cloud control plane cluster update that takes several > minutes. * **Rule**: **Do not run a terminal loop waiting for the GKE Backup > addon to become active.** * **Action**: Provide the command to enable the > addon, explain that the operation will proceed in the background, and > immediately proceed to write the backup plan configs. Do not block.
Read more
name: gke-backup-dr description: >- Configures GKE Backup Plans and restore workflows. Use for backup policies, disaster recovery, or GKE cluster restores. Don't use for database backups. metadata: category: Storage
GKE Backup & Disaster Recovery
Protects stateful GKE workloads using Backup for GKE. Backup for GKE natively captures both Kubernetes resource metadata (manifests, configurations, and secrets) and the underlying persistent volume (PV) data.
CLI Reference
# Enable GKE Backup addon (Slow cluster-level update) gcloud container clusters update <CLUSTER_NAME> --enable-gke-backup --region <REGION> --quiet # Create Backup Plan gcloud container backup-restore backup-plans create <PLAN_NAME> \ --cluster=<CLUSTER_NAME> --location=<REGION> \ --retention-days=<DAYS> --cron-schedule="<CRON>" --all-namespaces --quiet # Trigger Manual Backup gcloud container backup-restore backups create <BACKUP_NAME> \ --backup-plan=<PLAN_NAME> --location=<REGION> --quiet # Create Restore Plan gcloud container backup-restore restore-plans create <RESTORE_PLAN_NAME> \ --cluster=<TARGET_CLUSTER_NAME> --location=<REGION> --backup-plan=<SOURCE_BACKUP_PLAN_NAME> \ --cluster-resource-conflict-policy=USE_EXISTING_VERSION --namespaced-resource-restore-mode=FAIL_ON_CONFLICT --quiet # Execute Restore gcloud container backup-restore restores create <RESTORE_NAME> \ --restore-plan=<RESTORE_PLAN_NAME> --backup=<BACKUP_NAME> --location=<REGION> --quiet # Verify Restore Status gcloud container backup-restore restores describe <RESTORE_NAME> --location=<REGION>
Best Practices
1. **CMEK Encryption**: Encrypt backup plans using Customer-Managed Encryption Keys: `--backup-encryption-key=<KEY>`. 2. **Scope**: Prefer backing up specific namespaces rather than the entire cluster: `--included-namespaces=<ns1>,<ns2>`. 3. **Application Consistency**: Recommend quiescing the database or pausing application writes (e.g. using pre-backup hooks or database-specific tools) prior to backups to ensure data integrity. 4. **CSI Volume Snapshots**: Ensure that stateful backups utilize GKE's CSI (Container Storage Interface) driver for volume snapshots to capture persistent volume data. 5. **Service Terminology**: Always explicitly refer to the service as **Backup for GKE** in your response. This distinguishes it from the broader (but complementary) Google Cloud **Backup and Disaster Recovery (DR) Service**, as **Backup for GKE** is built specifically for GKE.
Troubleshooting & Common Pitfalls (CRITICAL)
> [!IMPORTANT] **Slow Operations**: Enabling GKE Backup (`--enable-gke-backup`) > triggers a slow Google Cloud control plane cluster update that takes several > minutes. * **Rule**: **Do not run a terminal loop waiting for the GKE Backup > addon to become active.** * **Action**: Provide the command to enable the > addon, explain that the operation will proceed in the background, and > immediately proceed to write the backup plan configs. Do not block.
This repository contains Agent Skills for Google products and technologies, including Google Cloud. This repository is under active development.
Repo: google/skills
Other skills on google-skills.
- /data-manager-api-audience-ingestion
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client libraries. Use this skill when the user wants to upload audience members, remove specific users, or clear/replace an
Open skill - /data-manager-api-event-ingestion
Guides developers through implementing event and conversion ingestion to Google products using the Data Manager API /v1/events/ingest endpoint and its associated client libraries. Use this skill when the user wants to upload offline conversions, enhanced conversions for leads,
Open skill - /data-manager-api-setup
Guides developers through client library installation and authentication setup steps for the Data Manager API. Use this skill when a user is getting started with the Data Manager API and needs to setup their local environment, install the client library, or setup access to the
Open skill - /google-ads-api-account-diagnostics
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets. Use when troubleshooting sudden performance drops, analyzing campaign impression share
Open skill - /google-ads-api-mcp-setup
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve
Open skill - /google-ads-api-quickstart
Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a "retrieve campaigns" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and
Open skill

