OpenClaw Recovery Drill
Use this skill to verify that an OpenClaw deployment can be recovered under pressure.
Goal
Shift the conversation from “we have backups” to “we can recover reliably within an acceptable time.”
Workflow
- 1. Identify the target workspace and any known backup roots.
- Run the bundled drill script.
- Review the readiness score, gaps, and proposed drill plan.
- If the result is
FAIL, treat it as an operator-readiness problem, not a documentation problem. - If the user wants a live drill, execute the restore only in a safe test location first.
Command
CODEBLOCK0
Both flags are optional. If omitted, the script checks common OpenClaw locations.
What the script checks
- - whether candidate backup roots exist
- whether recent backup files or directories are present
- whether the workspace contains the key operator files needed for recovery
- whether restore/runbook signals exist
- whether backups look recent enough for a realistic drill
- whether the operator has clear next-step drill actions
Output format
The script returns JSON with:
- - INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
Verdicts
- -
PASS — recovery posture looks usable for a lightweight drill - INLINECODE9 — partial coverage; recoverability is uncertain
- INLINECODE10 — backup or restore confidence is too weak to trust
Important limits
- - This is a readiness check, not proof of successful recovery by itself.
- A real drill should restore into an isolated test path and verify startup.
- Presence of backup files does not equal application-level recovery.
References
OpenClaw 恢复演练
使用此技能验证 OpenClaw 部署是否能在压力下成功恢复。
目标
将对话从我们有备份转变为我们能在可接受的时间内可靠恢复。
工作流程
- 1. 识别目标工作空间和任何已知的备份根目录。
- 运行捆绑的演练脚本。
- 审查就绪评分、差距和拟定的演练计划。
- 如果结果为失败,将其视为操作员就绪问题,而非文档问题。
- 如果用户希望进行实时演练,首先仅在安全测试位置执行恢复操作。
命令
bash
node {baseDir}/scripts/recovery-drill.mjs \
--workspace /绝对/路径/至/工作空间 \
--backup-root /绝对/路径/至/备份
两个标志均为可选。如果省略,脚本将检查常见的 OpenClaw 位置。
脚本检查内容
- - 候选备份根目录是否存在
- 最近的备份文件或目录是否存在
- 工作空间是否包含恢复所需的关键操作员文件
- 恢复/操作手册信号是否存在
- 备份是否足够新以进行实际演练
- 操作员是否有明确的下一步演练操作
输出格式
脚本返回 JSON,包含:
判定结果
- - 通过 — 恢复状态可用于轻量级演练
- 警告 — 部分覆盖;恢复能力不确定
- 失败 — 备份或恢复信心不足,无法信任
重要限制
- - 这是就绪检查,本身并非成功恢复的证明。
- 实际演练应恢复到隔离的测试路径并验证启动。
- 备份文件的存在不等同于应用级恢复。
参考资料
- - {baseDir}/references/drill-checklist.md