Backup And Disaster Recovery 标志

Backup And Disaster Recovery

组织热门
rampstackco
backup-and-disaster-recovery

规划并执行备份、设定恢复目标,以及开展灾难恢复演练。定义 RPO/RTO 目标、设计备份架构、决定备份内容和频率、规划整个区域或平台发生中断时的应对方案,或开展恢复演练时,使用此技能。触发词包括备份、恢复、RPO、RTO、灾难恢复、DR、业务连续性、数据库丢失了怎么办、托管服务宕机了怎么办、恢复演练、勒索软件应对计划。事件暴露出恢复能力存在缺口时,也使用此技能。

Add to TypingMind

概览

发布者rampstackco
代码仓库claude-skills
技能名称backup-and-disaster-recovery
星标数
1K
复刻数
134
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 rampstackco 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Backup And Disaster Recovery AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/rampstackco/claude-skills/tree/main/skills/backup-and-disaster-recovery
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rampstackco/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/backup-and-disaster-recovery .claude/skills/backup-and-disaster-recovery
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Backup And Disaster Recovery,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Backup And Disaster Recovery。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Backup And Disaster Recovery 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Backup and Disaster Recovery

Plan for the worst case: the database is gone, the host is down for a week, the deploy was poisoned, ransomware encrypted everything. The skill is in advance preparation, not reaction.


When to use

  • Setting up backups for a new system
  • Reviewing and validating backup architecture
  • Defining RPO (recovery point objective) and RTO (recovery time objective)
  • Running a disaster recovery drill
  • Diagnosing gaps after an incident
  • Planning for ransomware, data corruption, or insider threats
  • Migrating to a new platform (DR planning belongs in the migration plan)

When NOT to use

  • Active incident response (use incident-response)
  • Routine deploy rollbacks (use launch-runbook)
  • Code or content versioning (covered by Git, CMS revision history)
  • Routine database snapshots (use this skill to set them up; routine review goes in monitoring)

Required inputs

  • The systems in scope (databases, file storage, code, configs, secrets)
  • The hosting platforms and providers
  • Existing backup tooling and what it covers
  • Tolerance for data loss (in time)
  • Tolerance for downtime (in time)
  • Compliance requirements (some regulations mandate specific backup standards)

The framework: 4 questions

Every disaster recovery plan answers four questions explicitly.

Question 1: What needs to be recoverable?

List every system that holds state. Categorize by criticality.

Tier 1: must recover. Without it, the business stops. (Customer database, transaction log, primary content store.)

Tier 2: should recover. Loss is painful but not fatal. (Analytics, logs, secondary services.)

Tier 3: nice to recover. Easy to rebuild. (Caches, derived data, temporary state.)

The tier drives RPO, RTO, backup frequency, and storage spend.

Question 2: How much data loss is acceptable? (RPO)

RPO is the maximum age of data that's acceptable to lose, measured in time.

  • RPO = 1 hour: hourly backups or continuous replication needed
  • RPO = 1 day: daily backups acceptable
  • RPO = 1 week: weekly backups acceptable

For most production data, RPO of 1 hour or less is the target. For critical financial systems, near-zero RPO (continuous replication).

For derived or rebuildable data, RPO of 1 day or longer is fine.

Question 3: How much downtime is acceptable? (RTO)

RTO is the maximum time to restore service after a disaster.

RTO targetImplies
< 5 minutesHot standby with automatic failover
< 1 hourWarm standby with manual failover or fast restore from recent snapshot
< 24 hoursCold backup with documented restore process
Days to weeksBest-effort, accept extended downtime

RTO drives architecture spend. Aggressive RTOs (< 1 hour) are expensive. Loose RTOs (days) are cheap.

Question 4: What's the disaster?

Plan for specific scenarios. Each has different implications.

Hardware failure. Disk dies. Standard backups solve this. Most modern hosts handle automatically.

Provider outage. Region or vendor goes down. Cross-region or cross-provider redundancy needed for low RTO.

Data corruption. Bad migration, bug, accidental delete. Point-in-time restore needed. The latest backup might be corrupted; you need history.

Ransomware or compromise. Attacker encrypts or deletes. Backups must be immutable or air-gapped, otherwise the attacker takes them too.

Account compromise. Attacker has admin credentials, deletes everything. Same defense as ransomware: immutable backups, separate access control.

Vendor lock-out. Account suspended, billing dispute, vendor disappears. Backups outside the vendor needed.

Insider threat. Disgruntled employee deletes or exfiltrates. Audit logs, separation of duties, immutable backups.

A backup strategy that handles only hardware failure isn't a strategy. It's the easiest case.


Workflow

Step 1: Inventory state

Every system that holds state goes on a list:

SystemData typeTierCurrent backupTested?

If you can't list it, you can't protect it. Often the inventory itself reveals gaps (the "we forgot about that database" moment).

Step 2: Set RPO and RTO per tier

For each tier, agree on RPO and RTO. Get sign-off from the people who'd be impacted by a disaster.

Push back on aspirational targets that aren't backed by infrastructure spend. RTO of 5 minutes for a system without a hot standby is not real.

Step 3: Verify or design backup architecture

For each system, ensure:

  • Frequency matches RPO.
  • Retention covers point-in-time recovery (typically 30+ days for production data).
  • Storage location is separate from the source. Same disk, same account, same region: not enough.
  • Immutability or write-once storage for at least some backup copies. Defends against ransomware.
  • Encryption at rest. Standard for compliance.
  • Tested restore procedure. Untested backups are not backups.

The "3-2-1 rule" is a useful starting point: 3 copies of data, 2 different storage types, 1 offsite (or off-account, off-platform).

Step 4: Document the restore runbook

For each system, write the runbook:

  1. How to detect the disaster (cross-reference monitoring)
  2. How to decide to restore (decision criteria, who authorizes)
  3. The exact restore steps (commands, screenshots, sequence)
  4. How to verify the restore worked
  5. How to switch traffic back
  6. Communication template (status page, customer notice)

The runbook is for the worst night of someone's career. Write it for tired, panicked you.

Step 5: Run a drill

The first restore should never be during a real disaster.

Drills can be:

  • Tabletop: walk through the runbook on paper. Useful for finding gaps in the plan.
  • Partial: restore to a non-production environment. Verify the data, validate the steps.
  • Full: simulate the disaster. Production failover or full restore. Maximum confidence, maximum risk.

For most teams: quarterly tabletop, annual partial drill, full drill before major launches or after major architecture changes.

Step 6: Document drill results

After each drill, document:

  • What was tested
  • What worked
  • What broke
  • What the actual RPO and RTO were (vs. targets)
  • Action items

If the actual RTO was 6 hours when the target was 1 hour, the target is fiction. Either fix the gap or revise the target.

Step 7: Schedule the next drill

Calendar it. Assign an owner. Backups that aren't drilled drift toward useless.


Special topics

Database point-in-time recovery

Many managed databases offer point-in-time recovery (PITR) within a retention window (often 7-35 days). This typically achieves RPO of seconds to minutes.

For longer retention, schedule periodic exports to immutable storage.

PITR alone isn't enough. If the database service itself is compromised, PITR is gone too. Always have at least one backup outside the source service.

File storage backups

Object stores (S3, GCS, Azure Blob) usually offer:

  • Versioning (recover overwritten objects)
  • Replication (cross-region)
  • Object lock or immutability (defense against deletion)

Set all three for production-critical buckets. Don't rely on the storage provider's default retention.

Code and config backups

Code lives in Git. The Git host (GitHub, GitLab, etc.) is your backup, but a single host is a single point of failure.

For high-criticality code:

  • Mirror to a second host or your own server
  • Periodic offline exports

Configs and secrets need separate handling:

  • Infrastructure-as-code: in Git, mirrored
  • Runtime configs: backed up alongside the system
  • Secrets: in a secret manager with its own backup story

Backups of backups

The backup system itself can fail. Backup metadata, backup credentials, encryption keys: all must be backed up.

If your backup is encrypted with a key you've lost, the backup is useless.

Compliance backups

Some regulations require specific retention (e.g., 7 years for financial data). Comply with the highest applicable standard.

Don't conflate compliance retention with operational backup. Compliance often allows much slower restore (just need to be able to produce the data eventually).


Failure patterns

Untested backups. The single most common failure. Backups appear to work; restore fails. Test.

Backups in the same account or region as the source. Account compromise or region outage takes both.

No immutability. Ransomware encrypts the backups too. Use object lock or air-gapped storage.

RTO and RPO that aren't measured. Target says "1 hour" but no one has verified the actual RTO. Assume the actual is longer than the target until proven otherwise.

Restore runbook only in someone's head. Person leaves or is unavailable; runbook is gone. Document.

Backups but no DR plan. "We have backups" isn't a plan. The plan is the runbook plus the architecture plus the drilling.

Optimism bias. "It won't happen to us." It happens. Plan as if it will.

Backups too old or too new. Want point-in-time history (in case corruption isn't immediately discovered). Daily snapshots with 30+ day retention. Or continuous replication with separate periodic snapshots for history.

Skipping drills "because we're busy." Then you'll be busier during the disaster.

No communication plan. Restoring data is half the job. Telling customers, stakeholders, and internal teams what's happening is the other half.


Output format

A DR plan document includes:

  • Inventory: every stateful system
  • Tiering: criticality per system
  • Targets: RPO and RTO per tier
  • Architecture: backup tooling, frequency, storage, immutability
  • Runbooks: restore procedures per system
  • Drill schedule: what gets tested when
  • Drill log: results of past drills
  • Communication templates: what to say during a real DR event

Reference files

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Backup And Disaster Recovery AI 技能有什么作用?

规划并执行备份、设定恢复目标,以及开展灾难恢复演练。定义 RPO/RTO 目标、设计备份架构、决定备份内容和频率、规划整个区域或平台发生中断时的应对方案,或开展恢复演练时,使用此技能。触发词包括备份、恢复、RPO、RTO、灾难恢复、DR、业务连续性、数据库丢失了怎么办、托管服务宕机了怎么办、恢复演练、勒索软件应对计划。事件暴露出恢复能力存在缺口时,也使用此技能。

为什么在 TypingMind 中使用 Backup And Disaster Recovery?

因为您只需安装一次,就能搭配任何模型使用。Backup And Disaster Recovery 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Backup And Disaster Recovery?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/rampstackco/claude-skills/tree/main/skills/backup-and-disaster-recovery。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Backup And Disaster Recovery?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Backup And Disaster Recovery 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Backup And Disaster Recovery 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Backup And Disaster Recovery AI 技能免费吗?

是的。rampstackco 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇