Repository navigation
Conversation
Adds a "Restore from a backup archive" section to docs/cli/backup.md covering: - How to inspect a backup with verify + reading the embedded manifest.json - Archive payload layout (<archive-root>/payload/posix/<abs-path>/...) - Same-machine restore via tar -xzf back to original paths - New-machine / different-path restore via staging directory + cp -a - Pointer to /install/migrating for guided cross-machine flows OpenClaw does not currently ship `openclaw backup restore`, so the docs explicitly call that out and explain the manual `tar` extract guided by the manifest. Frontmatter `read_when` is extended to cover restore. Closes openclaw#77849
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the newer restore-docs PR is open, mergeable, proof-positive, and covers the same missing backup restore docs gap with safer trusted-archive, private-staging, cleanup, and manifest-path guidance. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this branch, continue review on #86971 as the canonical manual restore guide, and keep native restore-command design in #13616. So I’m closing this here and keeping the remaining discussion on #86971 and #13616. Review detailsBest possible solution: Close this branch, continue review on #86971 as the canonical manual restore guide, and keep native restore-command design in #13616. Do we have a high-confidence way to reproduce the issue? Yes for the underlying docs gap: current main backup docs and CLI registration expose create/verify only. This branch and the newer canonical PR both target that same missing restore guidance. Is this the best way to solve the issue? No. Manual restore documentation is the right narrow current-surface fix, but this branch is not the best landing path because the newer PR handles trust, private staging, cleanup, and manifest paths more safely. Security review: Security review needs attention: The docs-only diff would publish unsafe restore staging guidance for archives that can contain credentials, sessions, auth profiles, and workspace data.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
|
Heads up: this PR needs to be updated against current |
Summary
docs/cli/backup.mdthat covers inspecting, same-machine restore, and new-machine restore usingtar+ the embeddedmanifest.json.openclaw backupdoes not ship a pairedrestoresubcommand and explains the manual flow.read_whenandRelatedlinks to cover restore + the migrating guide.Closes #77849
Testing
pnpm docs:check-mdx(Docs MDX check passed, 613 files)pnpm docs:check-links(checked_internal_links=4217, broken_links=0)pnpm vitest run src/scripts/docs-link-audit.test.ts(6/6)Real behavior proof
openclaw backupdocs at https://docs.openclaw.ai/cli/backup. This PR adds the missing restore procedure (same-machine, new-machine, archive layout, manifest inspection) directly to that page, and is honest that there is noopenclaw backup restoresubcommand today.