Skip to content
Back to skills

Gke Backup Dr

ASecurity

Workflows for configuring Backup for GKE and disaster recovery.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsbashexpresssecurity

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add go-steer/core-agent --skill gke-backup-dr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gke Backup Dr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gke Backup Dr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/go-steer-gke-backup-dr/badge)](https://www.skillsdirectory.com/skills/go-steer-gke-backup-dr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gke-backup-dr
description: Workflows for configuring Backup for GKE and disaster recovery.
---

# GKE Backup & Disaster Recovery Skill

This skill provides workflows for protecting your stateful workloads on GKE using Backup for GKE.

## Workflows

### 1. Enable Backup for GKE

Backup for GKE must be enabled on the cluster level.

**Command:**

```bash
gcloud container clusters update <cluster-name> \
    --enable-gke-backup \
    --region <region>
```

### 2. Create a Backup Plan

A Backup Plan defines what to back up, when, and for how long.

**Command to create a backup plan:**

```bash
gcloud container backup-restore backup-plans create <plan-name> \
    --cluster=<cluster-name> \
    --region=<region> \
    --retention-days=<days> \
    --cron-schedule="<cron-expression>" \
    --all-namespaces
```

> [!NOTE]
> You can replace `--all-namespaces` with `--included-namespaces=<namespace1>,<namespace2>` to back up specific namespaces instead of all of them.

**Encryption Note**: You can specify a Customer-Managed Encryption Key (CMEK) to encrypt backups. Add `--backup-encryption-key=<key-resource-name>` to the `create` command.

### 3. Create a Manual Backup

Trigger a backup immediately outside the schedule.

**Command:**

```bash
gcloud container backup-restore backups create <backup-name> \
    --backup-plan=<plan-name> \
    --region=<region>
```

### 4. Restore from Backup

Restore a workload or cluster from a backup.

**Command to create a restore plan:**

```bash
gcloud container backup-restore restore-plans create <restore-plan-name> \
    --cluster=<target-cluster-name> \
    --region=<region> \
    --backup-plan=<source-backup-plan-name> \
    --cluster-resource-conflict-policy=USE_EXISTING_VERSION \
    --namespaced-resource-restore-mode=FAIL_ON_CONFLICT
```

**Execute the restore:**

```bash
gcloud container backup-restore restores create <restore-name> \
    --restore-plan=<restore-plan-name> \
    --backup=<backup-name> \
    --region=<region>
```

## Best Practices

1. **Automate Backups**: Always use a cron schedule for production workloads.
2. **Test Restores**: Regularly test restoring backups to a separate namespace or cluster to ensure data integrity.
3. **Cross-Region DR**: Consider storing backups in a different region or setting up a cross-region restore plan for disaster recovery.
4. **Secure Backups**: Use Customer-Managed Encryption Keys (CMEK) to encrypt backups for compliance and security.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.