Planning disaster recovery

From jeremylongshore/claude-code-plugins-plus-skills · View interactive version

Planning disaster recovery is an AI agent skill from the GitHub repository jeremylongshore/claude-code-plugins-plus-skills. Execute use when you need to work with backup and recovery. This skill provides backup automation and disaster recovery with comprehensive guidance and automation. Trigger with phrases like "create backups", "automate backups", or "implement disaster recovery".

How to use this skill

Skill file

Planning Disaster Recovery

Overview

Design disaster recovery (DR) plans for cloud infrastructure covering RTO/RPO requirements, multi-region failover, data replication, and automated recovery procedures. Generate runbooks, Terraform for standby infrastructure, and automated failover scripts for databases, compute, and networking.

Prerequisites

Instructions

  1. Catalog all production services with their criticality tier (Tier 1: < 15 min RTO, Tier 2: < 1 hour, Tier 3: < 24 hours)
  2. Map dependencies between services to identify single points of failure and cascading failure paths
  3. Design the DR strategy per tier: active-active for Tier 1, pilot light or warm standby for Tier 2, backup-restore for Tier 3
  4. Generate Terraform for standby region infrastructure: VPC, subnets, security groups, and scaled-down compute
  5. Configure database replication: RDS cross-region read replicas, DynamoDB global tables, or Cloud SQL cross-region replicas
  6. Set up DNS failover using Route 53 health checks, Cloud DNS routing policies, or global load balancers
  7. Create automated failover scripts: promote read replica to primary, update DNS records, scale up standby compute
  8. Document the DR runbook with step-by-step procedures, responsible parties, and communication plans
  9. Schedule quarterly DR drills: simulate region failure, execute the runbook, measure actual RTO/RPO, and document gaps
  10. Set up monitoring for replication lag, backup freshness, and standby infrastructure health

Output

Error Handling

| Error | Cause | Solution |

|-------|-------|---------|

| Replication lag exceeds RPO | Network throughput insufficient or write volume too high | Increase replication instance size, enable compression, or implement write throttling during peak |

| DNS failover not triggering | Health check misconfigured or TTL too high | Verify health check endpoint returns proper status; reduce DNS TTL to 60 seconds before drill |

| Standby database promotion failed | Replication broken or standby in inconsistent state | Check replication status; if broken, restore from latest snapshot and re-establish replication |

| Insufficient capacity in DR region | Instance types unavailable in standby region | Pre-provision reserved capacity in DR region or use multiple instance type options |

| Application cannot connect after failover | Connection strings hardcoded to primary region endpoints | Use DNS-based endpoints (CNAME/Route 53) instead of direct IPs; parameterize region in config |

Examples

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.