You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 65597f9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/backup.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Archive `create`, `verify`, and `restore`, plus SQLite `create`, `list`, `verify
45
45
- The archive embeds a `manifest.json` with the resolved source paths and archive layout.
46
46
- Default output is a timestamped `.tar.gz` archive in the current working directory. Timestamped filenames use your machine's local timezone and include the UTC offset. If the current working directory is inside a backed-up source tree, OpenClaw falls back to your home directory for the default archive location.
47
47
- Existing archive files are never overwritten. Output paths inside the source state/workspace trees are rejected to avoid self-inclusion.
48
-
-`openclaw backup verify <archive>` checks that the archive contains exactly one root manifest, rejects traversal-style archive paths and SQLite sidecars, confirms every manifest-declared payload exists, validates every SQLite snapshot's file shape, and runs full integrity and role checks on canonical OpenClaw databases. Dedicated plugin schemas remain opaque because they may require owner-defined SQLite capabilities. `openclaw backup create --verify` runs that validation immediately after writing the archive.
48
+
-`openclaw backup verify <archive>` checks that the archive contains exactly one root manifest, rejects traversal-style archive paths, absolute or archive-escaping symbolic links, and SQLite sidecars, confirms every manifest-declared payload exists, validates every SQLite snapshot's file shape, and runs full integrity and role checks on canonical OpenClaw databases. Dedicated plugin schemas remain opaque because they may require owner-defined SQLite capabilities. `openclaw backup create --verify` runs that validation immediately after writing the archive.
49
49
-`openclaw backup create --only-config` backs up just the active JSON config file.
50
50
51
51
## Restore a full archive
@@ -70,7 +70,9 @@ archive.
70
70
relinking. Approvals and delivery/dedupe state also roll back, so review
71
71
pending approvals before resuming the Gateway. Plugin `node_modules` trees
72
72
are not archived; after activation, run `openclaw plugins update <id>` or
73
-
reinstall with `openclaw plugins install <spec> --force`.
73
+
reinstall with `openclaw plugins install <spec> --force`. The generated
74
+
`plugin-skills/` symlink index is also omitted; run `openclaw skills list` or
75
+
start an agent session after activation to rebuild it from plugin metadata.
74
76
</Warning>
75
77
76
78
Activation is a separate offline operator step. Stop the Gateway, move the
@@ -261,6 +263,8 @@ SQLite databases under the state directory are captured with SQLite's online bac
261
263
262
264
Installed plugin source and manifest files under the state directory's `extensions/` tree are included, but their nested `node_modules/` dependency trees are skipped as rebuildable install artifacts. After restoring an archive, use `openclaw plugins update <id>` or reinstall with `openclaw plugins install <spec> --force` if a restored plugin reports missing dependencies.
263
265
266
+
The state directory's `plugin-skills/` root is a generated, OpenClaw-owned symlink index, not authoritative state. Backup creation reports and omits that root because its absolute targets are specific to the source installation. After activating restored state, run `openclaw skills list` or start an agent session to rebuild the links from current plugin metadata. Other relative symbolic links are retained when their targets stay inside the archive root; verification rejects absolute or archive-escaping targets.
267
+
264
268
Installer-managed and rebuildable runtime roots under the state directory are also skipped: `dev/`, `git/`, `npm/`, legacy `npm-runtime/`, `tmp/`, and `tools/`. These contain managed checkouts, package trees, compiler caches, temporary files, and downloaded runtimes rather than authoritative user state; reinstall or update the corresponding runtime or plugin after restore. An explicitly configured config file, credentials directory, or workspace inside one of these roots remains included.
265
269
266
270
Local edits inside a managed `dev/` checkout are developer source, not OpenClaw product state, and are not included. Commit and push those edits or copy the checkout separately before relying on a state backup.
"Messaging-channel credentials with ratchet state, especially WhatsApp, may desynchronize after rollback and require relinking.",
15
16
"Approvals and delivery/dedupe state also roll back; review pending approvals before resuming the Gateway.",
16
17
"Plugin node_modules are not archived; after activation, run `openclaw plugins update <id>` or reinstall with `openclaw plugins install <spec> --force`.",
18
+
"Generated plugin-skills links are not archived; after activation, run `openclaw skills list` or start an agent session to rebuild them.",
0 commit comments