Install
openclaw skills install clone-lobsterOpenClaw/CatPaw 配置与上下文自动备份恢复工具。在使用 OpenClaw 过程中自动保留配置变更、工作区文件、对话上下文、已安装 Skills 和系统改动到 Git 仓库。 触发场景:(1) 用户要求备份/保存当前配置 (2) 用户要求恢复之前的配置 (3) 对话中产生了重要的配置变更、skill...
openclaw skills install clone-lobster将 OpenClaw/CatPaw 的配置、上下文、Skills 和系统改动自动备份到 Git 仓库。
CLONE_LOBSTER_REPO_URL| 类别 | 路径 | 说明 |
|---|---|---|
| 工作区 | ~/.openclaw/workspace/ | AGENTS.md, SOUL.md, USER.md, MEMORY.md, memory/ 等 |
| 配置 | ~/.openclaw/ | openclaw.json, exec-approvals.json |
| Skills | ~/.openclaw/skills/ | 所有用户安装的 skills |
| 系统 | /etc/supervisor/ 等 | supervisord.conf, 桌面启动脚本, SSH 配置 |
| 上下文 | ~/.openclaw/data/ | session 数据库和 memory 索引 |
在对话中检测到以下变更时,自动触发备份:
执行备份:
export CLONE_LOBSTER_REPO_URL="ssh://git@git.sankuai.com/~lipingjiang/catclaw_configuration.git"
bash scripts/backup.sh "描述本次变更"
export CLONE_LOBSTER_REPO_URL="ssh://git@git.sankuai.com/~lipingjiang/catclaw_configuration.git"
# 恢复全部
bash scripts/restore.sh --all
# 仅恢复工作区
bash scripts/restore.sh --workspace
# 仅恢复配置
bash scripts/restore.sh --config
# 仅恢复 Skills
bash scripts/restore.sh --skills
Agent 在以下情况下应主动运行备份脚本:
node_modules、__pycache__ 等无需备份的目录