← 返回 Skills 市场
OpenClaw Self Backup & Restore
作者
liuyue8135
· GitHub ↗
· v1.0.1
· MIT-0
241
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install yuebao-self-backup
功能描述
Backup and restore OpenClaw agent configuration, skills, memory, and workspace files. Use when asked to "backup", "backup yourself", "create a restore point"...
安全使用建议
This skill appears to do what it says: create and restore local backups of OpenClaw configuration, skills, memory and credential files. Before using it, consider the following: (1) Backups include sensitive data (e.g., ~/.openclaw/.env and credentials/) — store backups with strong filesystem permissions and/or encrypt them (e.g., gpg, age, encrypted archive). (2) If you enable automated cron/announce, verify what the OpenClaw cron 'announce' and channel behavior sends — avoid broadcasting secrets or full manifest to external channels. (3) Do a test restore on a disposable environment to confirm the restore flow and file ownerships/permissions. (4) Keep the backups directory (~/backups) on a secure volume; if you store backups off-host (cloud), use client-side encryption. (5) Avoid running restore as root; run as the same user to preserve expected paths. If you want stronger guarantees, ask the author for an option to encrypt backups or to exclude credential files by default.
功能分析
Type: OpenClaw Skill
Name: yuebao-self-backup
Version: 1.0.1
The skill is designed to backup and restore the OpenClaw agent's entire state, including sensitive API keys (`.env`), credentials, and configuration files. While the scripts (`scripts/backup.py` and `scripts/restore.py`) perform these actions locally as described, `restore.py` contains a TarSlip vulnerability by using `tar.extractall(HOME)` without validating member paths, which could allow a malicious archive to overwrite arbitrary files. The handling of unencrypted credentials and the lack of path sanitization during restoration are significant security risks.
能力评估
Purpose & Capability
Name/description say 'backup & restore OpenClaw agent state' and the scripts explicitly read and archive OpenClaw configuration, skills, memory, identity files and credential directories — all coherent with the stated purpose.
Instruction Scope
Instructions direct running the included Python scripts and optionally scheduling via OpenClaw cron. The scripts read many sensitive files (e.g., ~/.openclaw/.env, ~/.openclaw/credentials/) and create a local archive in ~/backups; this is expected for a full backup but is sensitive by design. The SKILL.md suggests using cron with '--announce --channel telegram', which could broadcast backup results depending on the cron system — the skill scripts themselves do not perform network calls or externally transmit archived data.
Install Mechanism
No install spec; skill is instruction-plus-scripts. The scripts are Python and run locally; nothing is downloaded from arbitrary URLs or installed automatically by the skill. Low installation risk.
Credentials
The skill requests no environment variables, which is consistent. However it explicitly includes API credential files and credential directories in backups, so it will aggregate secrets into local archives. This is proportionate for a backup tool but increases risk if backup storage is not protected or if cron/announce features broadcast status to external channels.
Persistence & Privilege
always is false and the skill does not request persistent elevated privileges or modify other skills. It operates on user files under the home directory and creates backups under ~/backups; no indication of modifying system-wide configs or other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install yuebao-self-backup - 安装完成后,直接呼叫该 Skill 的名称或使用
/yuebao-self-backup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
v1.0.1: 移除私人配置信息,改为通用模板,适合所有 OpenClaw 用户使用
v1.0.0
完整备份和恢复 OpenClaw 配置、技能、记忆、API凭证。支持定时自动备份,保留最近6份,超出自动清理。一键恢复,5分钟内重建完整环境。
元数据
常见问题
OpenClaw Self Backup & Restore 是什么?
Backup and restore OpenClaw agent configuration, skills, memory, and workspace files. Use when asked to "backup", "backup yourself", "create a restore point"... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 241 次。
如何安装 OpenClaw Self Backup & Restore?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install yuebao-self-backup」即可一键安装,无需额外配置。
OpenClaw Self Backup & Restore 是免费的吗?
是的,OpenClaw Self Backup & Restore 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Self Backup & Restore 支持哪些平台?
OpenClaw Self Backup & Restore 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Self Backup & Restore?
由 liuyue8135(@liuyue8135)开发并维护,当前版本 v1.0.1。
推荐 Skills