mcpField
B
backup-disaster-recovery

backup-disaster-recovery

github.com/aj-geddesCloud & DevOps373622 installsUpdated 34w ago
Repository

About backup-disaster-recovery

backup-disaster-recovery is a guide for operations and cloud infrastructure teams to plan data protection and business continuity. It covers backup and restore, failover, and recovery procedures.

Key features

  1. 01Database backup configuration
  2. 02Disaster recovery plan template
  3. 03Backup and restore scripts
  4. 04Cross-region failover guidance

Use cases

  1. 01Plan business continuity
  2. 02Design point-in-time recovery
  3. 03Prepare cross-region failover
  4. 04Optimize recovery time objectives

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill backup-disaster-recovery

After installing, type/backup-disaster-recoveryin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
backup-and-restore-script.md
cross-region-failover.md
database-backup-configuration.md
disaster-recovery-plan-template.md
scripts/
validate-schema.sh
templates/
migration-template.sql

Details

From the project README

Backup and Disaster Recovery

Table of Contents

Overview

Design and implement comprehensive backup and disaster recovery strategies to ensure data protection, business continuity, and rapid recovery from infrastructure failures.

When to Use

  • Data protection and compliance
  • Business continuity planning
  • Disaster recovery planning
  • Point-in-time recovery
  • Cross-region failover
  • Data migration
  • Compliance and audit requirements
  • Recovery time objective (RTO) optimization

Quick Start

Minimal working example:

# postgres-backup-cronjob.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: backup-script
  namespace: databases
data:
  backup.sh: |
    #!/bin/bash
    set -euo pipefail

    BACKUP_DIR="/backups/postgresql"
    RETENTION_DAYS=30
    DB_HOST="${POSTGRES_HOST}"
    DB_PORT="${POSTGRES_PORT:-5432}"
    DB_USER="${POSTGRES_USER}"
    DB_PASSWORD="${POSTGRES_PASSWORD}"

    export PGPASSWORD="$DB_PASSWORD"

    # Create backup directory
    mkdir -p "$BACKUP_DIR"

    # Full backup
    BACKUP_FILE="$BACKUP_DIR/full-$(date +%Y%m%d-%H%M%S).sql"
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Database Backup ConfigurationDatabase Backup Configuration
Disaster Recovery Plan TemplateDisaster Recovery Plan Template
Backup and Restore ScriptBackup and Restore Script
Cross-Region FailoverCross-Region Failover

Best Practices

✅ DO
  • Perform regular backup testing
  • Use multiple backup locations
  • Implement automated backups
  • Document recovery procedures
  • Test failover procedures regularly
  • Monitor backup completion
  • Use immutable backups
  • Encrypt backups at rest and in transit
❌ DON'T
  • Rely on a single backup location
  • Ignore backup failures
  • Store backups with production data
  • Skip testing recovery procedures
  • Over-compress backups beyond recovery speed needs
  • Forget to verify backup integrity
  • Store encryption keys with backups
  • Assume backups are automatically working

Comments

Markdown supported