← 返回 Skills 市场
OpenClaw State Backup
作者
Danielwangyy
· GitHub ↗
· v1.0.2
· MIT-0
310
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-state-backup
功能描述
Create, inspect, and restore versioned OpenClaw state backups with rollback safety. Use when backing up or migrating OpenClaw memory, workspace state, gatewa...
安全使用建议
This skill appears to implement the stated backup/restore functionality, but take care before using it on important data:
- The included scripts will read and write files under your home (~/.openclaw) and the provided workspace path; backups can contain sensitive data (including local skills). Treat output .tar.gz files as sensitive and store/encrypt them appropriately.
- The restore script distributed here appears truncated/buggy: the shipped file ends mid-function and the final_report construction refers to an undefined variable (likely a bug: 'warning' vs 'warnings'). Expect runtime failures on a real restore. Do NOT rely on this restore script for production restores until the code is fixed and fully tested.
- There are logic bugs (e.g., comparisons of paths when computing 'missingFromArchive' may not match due to differing string forms). Review and test both backup and restore with --verify-only and --dry-run on non-production data first.
- Prefer encrypting archives at creation or storing them in a secure location, since archives are unencrypted by default.
- If you want to proceed, ask the author for a corrected restore_state.py (complete file), or locally fix the undefined variable and test full/dry-run flows. Also audit any archived workspace/skills content for secrets before shipping archives off-host.
If the author supplies a complete, corrected restore script and tests showing successful dry-run and real restores, that would increase confidence and could move the classification to 'benign'.
功能分析
Type: OpenClaw Skill
Name: openclaw-state-backup
Version: 1.0.2
The skill provides comprehensive backup and restore functionality for OpenClaw state but contains a significant security vulnerability. Specifically, `scripts/restore_state.py` utilizes `tar.extractall()` without path validation or security filters, making the system vulnerable to directory traversal (ZipSlip) attacks if a malicious archive is processed. Additionally, `scripts/backup_state.py` collects and stores system metadata, including the host's hostname and platform details, within the backup manifest.
能力评估
Purpose & Capability
Name/description match the included scripts and instructions. The scripts enumerate and archive OpenClaw runtime and workspace paths (state dir and workspace), build a manifest, compute checksums, and provide restore/dry-run behavior — all consistent with a state backup/restore tool.
Instruction Scope
SKILL.md restricts behavior to creating/verifying/restoring archives and describes safety rules. The scripts read/write files under the user's home and workspace (e.g., ~/.openclaw, workspace/*, workspace/skills/). This is expected for a backup tool, but means backups may include sensitive user data and local skill code. No network exfiltration or unexpected external endpoints are present in the instructions or code.
Install Mechanism
Instruction-only with included Python scripts; no install spec, no external downloads, and no package install steps. This is the lowest install risk and aligns with the skill's purpose.
Credentials
The skill requests no environment variables or credentials, and only accesses local filesystem and basic system info (hostname, platform). That access is appropriate for a backup/restore tool, but the set of files it copies (including workspace/skills/) can contain secrets; archives are produced unencrypted, so secure handling of generated archives is necessary.
Persistence & Privilege
Skill is not always-enabled and does not request elevated persistence. It does create rollback archives and write reports to disk (expected behavior). It does not attempt to change other skills' configs or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-state-backup - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-state-backup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Add MIT license and improve README/project homepage presentation.
v1.0.1
Improve README and project presentation for public open-source release.
v1.0.0
Initial release of openclaw-state-backup.
- Create, inspect, and restore versioned snapshots of OpenClaw state
- Supports two backup modes: `mutable` (runtime state only) and `full` (adds identity/bootstrap files)
- Includes manifest, integrity checksums, and compatibility metadata in each backup
- Robust restore workflow: archive verification, compatibility check, dry-run/reporting, and auto rollback creation
- Safe restore: never overwrites with failed/verifiable archives, avoids deleting unrelated files
- Includes clear recovery steps with generated rollback archive for easy undo
元数据
常见问题
OpenClaw State Backup 是什么?
Create, inspect, and restore versioned OpenClaw state backups with rollback safety. Use when backing up or migrating OpenClaw memory, workspace state, gatewa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 310 次。
如何安装 OpenClaw State Backup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-state-backup」即可一键安装,无需额外配置。
OpenClaw State Backup 是免费的吗?
是的,OpenClaw State Backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw State Backup 支持哪些平台?
OpenClaw State Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw State Backup?
由 Danielwangyy(@danielwangyy)开发并维护,当前版本 v1.0.2。
推荐 Skills