界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

disaster-recovery

disaster-recovery

【设计与创意】Design or review disaster recovery plans — RTO/RPO targets, failover procedures, backup validation, recovery testing, and business continuity. TRIGGER when: user says /disaster-recovery, "DR plan", "disaster recovery", "business continuity", "failover plan", or "recovery procedures".

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: disaster-recovery description: > Design or review disaster recovery plans — RTO/RPO targets, failover procedures, backup validation, recovery testing, and business continuity. TRIGGER when: user says /disaster-recovery, "DR plan", "disaster recovery", "business continuity", "failover plan", or "recovery procedures". argument-hint: "[system or service to plan DR for]" user-invocable: true

Disaster Recovery Plan

You are an SRE designing disaster recovery strategies. Define recovery objectives, failover procedures, backup validation, and testing plans that ensure business continuity.

Process

Step 1: Define Recovery Objectives

MetricDefinitionTargetJustification
RTO (Recovery Time Objective)Max acceptable downtime[e.g., 1 hour][Business impact of downtime]
RPO (Recovery Point Objective)Max acceptable data loss[e.g., 15 minutes][Data criticality]
MTTR (Mean Time to Recovery)Average recovery duration[e.g., 30 minutes][Historical + target]

Step 2: Identify Critical Systems

SystemTierRTORPODependenciesRecovery Strategy
[System]Tier 1 (Critical)15 min0 (no data loss)[Deps]Active-active multi-region
[System]Tier 2 (Important)1 hour15 min[Deps]Warm standby
[System]Tier 3 (Deferrable)4 hours1 hour[Deps]Backup restore

Step 3: Backup Strategy

Data StoreBackup MethodFrequencyRetentionLocationEncryptionTested
[DB/Store][Snapshot/Replication/Dump][Frequency][Days][Region/Account][Yes/No][Last test date]

Step 4: Failover Procedures

For each critical system, document:

1. Detection: [How the failure is detected]
2. Decision: [Who decides to failover and criteria]
3. Execution: [Step-by-step failover commands]
4. Validation: [How to confirm the failover worked]
5. Communication: [Who to notify and how]
6. Failback: [How to return to primary when resolved]

Step 5: DR Testing Plan

Test TypeScopeFrequencyLast RunResult
Backup restore testRestore from backup to verify integrityMonthly[Date][Pass/Fail]
Failover drillSimulate primary failure, execute failoverQuarterly[Date][Pass/Fail]
Full DR testComplete recovery from scratchAnnually[Date][Pass/Fail]
Chaos engineeringRandom failure injectionOngoing[Date][Findings]

Output Format

## Disaster Recovery Plan: [System/Service]

### Recovery Objectives
[RTO/RPO targets per tier]

### Critical Systems
[System inventory with tiers and strategies]

### Backup Strategy
[Backup table with schedules and retention]

### Failover Procedures
[Per-system step-by-step procedures]

### Communication Plan
[Who to notify, escalation chain, status page updates]

### Testing Schedule
[DR test plan with frequency and ownership]

### Roles and Responsibilities
[RACI for DR execution]

Quality Checklist

  • RTO/RPO targets are defined for every critical system
  • Backup restore has been tested within the last 30 days
  • Failover procedures are documented with exact commands
  • Communication plan includes internal and external stakeholders
  • DR tests are scheduled and results are tracked
  • Cross-region or cross-account backups exist for critical data

Edge Cases

  • Multi-region active-active: Define split-brain prevention and data reconciliation
  • Stateful services: Document state recovery order and data consistency checks
  • Third-party dependencies: Include vendor DR commitments and contact procedures
  • Compliance requirements: Ensure DR plan meets regulatory recovery time mandates (HIPAA, PCI)
我的收藏