Repository navigation
docs(backup): describe manual restore flow - #86971
Conversation
|
@clawsweeper re-review I updated the PR body with a dedicated Real behavior proof section for the docs-only restore guidance. The GitHub |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 6:01 AM ET / 10:01 UTC. ClawSweeper reviewWhat this changesThe PR adds a manual full-archive restore guide to the Backups page and links to it from the Backup CLI reference. Merge readinessKeep open. Current main only gives a terse archive-restore instruction; this branch supplies the missing safe, manifest-driven operator runbook and resolves the prior documentation-ownership finding by placing it in the Backups guide. Priority: P3 Review scores
Verification
How this fits togetherThe backup CLI creates and verifies state archives and SQLite snapshots, while the installation guide explains how operators safely restore them offline. The new guide takes a trusted archive through verification, private staging, manifest inspection, selective copy-back, and health checks. flowchart LR
A[Trusted backup archive] --> B[Archive verification]
B --> C[Private staging]
C --> D[Manifest inspection]
D --> E[Selected state copy-back]
E --> F[Gateway and doctor checks]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +92. Total +92 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the concise CLI-reference link and the complete manual archive restore workflow in the Backups guide, preserving the existing explicit offline-operator boundary. Do we have a high-confidence way to reproduce the issue? Not applicable: this documentation-only PR describes the existing archive and snapshot behavior; source inspection confirms the archive CLI has no first-class restore command. Is this the best way to solve the issue? Yes. Keeping the detailed workflow in the existing Backups guide and leaving the CLI page as reference is the cleanest documentation ownership split. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2c26f1360692. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
@clawsweeper re-review I updated the proof section to include the required Steps, Evidence, and Observed result fields explicitly. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Mossy Lint Imp Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
98e0243 to
2361e53
Compare
|
@clawsweeper re-review I fixed the restore order so |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2361e53 to
354c45f
Compare
|
@clawsweeper re-review I fixed the remaining trust-boundary wording: the restore docs now say to start only from an archive you created or otherwise trust, and explicitly clarify that |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
354c45f to
e334e54
Compare
|
@clawsweeper re-review I fixed the restore staging path too: the example now uses a private per-run |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review I addressed the latest fail-closed restore finding from the May 30 review. Changes:
Verification rerun:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
97e1ca0 to
b5d5cb5
Compare
|
Fresh validation from a current Linux install suggests this restore-docs PR is the right canonical place to land the manual restore guidance. Real behavior proof / operator notes:
One adjacent edge case worth keeping in mind, but not a blocker for this docs PR: large live-state backups may have many intentionally skipped volatile paths. Keeping skipped-path details summarized/bounded in the manifest avoids verifier limits while preserving the useful |
b5d5cb5 to
57b02f4
Compare
|
Rebased onto current main and refreshed the generated docs map at exact head 59b1625f790.\n\nValidation:\n- docs MDX: 733 files passed\n- internal links: 6,034 checked, 0 broken\n- docs map: up to date\n- git diff check: clean\n\n@clawsweeper re-review |
|
@clawsweeper re-review Rebased onto current upstream |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Add set -euo pipefail to the first restore staging snippet so a failed openclaw backup verify stops before mktemp/tar extraction, matching the fail-closed copy-back block. Addresses ClawSweeper P1 on docs/cli/backup.md. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Punchcard-Session: brisk-harbor-harbor-6w
|
@clawsweeper re-review Rebased onto current |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: calm-cedar-workshop-by
|
@clawsweeper re-review Addressed the exact-head P2 by moving the full archive restore runbook to The diff is limited to those two documentation files. Local MDX, internal-link, heading, diff, and shell-syntax checks are green. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
Closes #77849
What Problem This Solves
OpenClaw can create and verify full
.tar.gzbackups, but it does not currently provide a first-class archive restore command. Operators had no documented path for safely inspecting a trusted archive, mapping its manifest assets back to target paths, or restoring the smallest necessary state.Why This Change Was Made
This adds a manual, manifest-driven restore runbook to the existing Backups guide and keeps the backup CLI page as the concise command reference. It preserves the current product boundary—archive restore remains an explicit offline operator procedure—and calls out trust, private staging, cleanup, omitted artifacts, and same-machine/new-machine considerations.
User Impact
Operators can now restore selected payloads from a trusted OpenClaw backup without guessing the archive root or treating structural verification as archive authentication. The guide verifies before extraction, fails closed in its shell examples, keeps sensitive staging private, and points to post-restore doctor/plugin follow-up.
Evidence
Exact PR head:
4dc4080ad886bce4560bd6fff19b951675c44ccbmainat1672d78d17d48e80942319954d7e5d3411488ff6.main, so no additional rebase was needed.docs/install/backups.md;docs/cli/backup.mdnow links to the canonical guide.cp -acreates it, preserving the staged directory mode and metadata.git diff --checkpassed with no output.bashrestore examples passedbash -nsyntax validation.pnpm docs:list --headingsparsed/install/backupswithRestore,Restore a full archive, andRestore a database.node scripts/check-docs-mdx.mjs docs/install/backups.md docs/cli/backup.mdpassed for both files.pnpm docs:check-linkschecked 6,448 internal links with 0 broken.No live restore was performed because this is documentation for the existing manual procedure, not a new restore implementation.