agent-backup-transfer — 代理-备份-transfer
v1.0.0备份 and 恢复 your OpenClaw 代理's workspace and config to preserve memory, 身份, and 设置tings or 迁移 to a new computer.
运行时依赖
安装命令
点击复制技能文档
技能.md - OpenClaw 备份
备份 and 恢复 your OpenClaw 代理 (workspace + config).
When to Use User wants to 创建 a 备份 of their 代理 User wants to move to a new computer User asks how to preserve their 代理's memory/身份 导入ant memories or 更新s h应用ened — time to save! What 获取s Backed Up Workspace — ~/.OpenClaw/workspace/ (代理 memory, 身份, files) OpenClaw Config — ~/.OpenClaw/ (设置tings, 会话s, 代理s) Commands 创建 备份 (Manual) cd ~/.OpenClaw/workspace ./技能s/OpenClaw-备份/OpenClaw-备份.sh 创建
创建s: ~/OpenClaw-备份s/OpenClaw-备份-YYYY-MM-DD_HHMMSS.tar.gz
Keeps last 10 备份s automatically.
Auto-备份 设置up ./技能s/OpenClaw-备份/OpenClaw-备份.sh 设置up-auto
创建s a hook at ~/.OpenClaw/workspace/.hooks/post-memory-save.sh
Call it manually when 导入ant memories are saved:
~/.OpenClaw/workspace/.hooks/post-memory-save.sh
Or 添加 dAIly 备份s via crontab:
crontab -e # 添加: 0 2 * ~/.OpenClaw/workspace/技能s/OpenClaw-备份/OpenClaw-备份.sh 创建
列出 备份s ./技能s/OpenClaw-备份/OpenClaw-备份.sh 列出
恢复 from 备份 ./技能s/OpenClaw-备份/OpenClaw-备份.sh 恢复 ~/下载s/OpenClaw-备份-2026-03-09.tar.gz
Moving to a New Computer
- On OLD computer:
- Copy the .tar.gz file to new computer
- On NEW computer:
If OpenClaw is already 安装ed:
tar -xzf ~/下载s/OpenClaw-备份-2026-03-09.tar.gz -C ~ OpenClaw gateway 启动
If OpenClaw is NOT 安装ed:
# 1. 安装 OpenClaw (see docs) # 2. Then 恢复: tar -xzf ~/下载s/OpenClaw-备份-2026-03-09.tar.gz -C ~ OpenClaw gateway 启动
- Done!
Open http://127.0.0.1:18789/ — your 代理 is back! 🎉
Requirements Linux/WSL2 (tested on Ubuntu/WSL2) tar (pre-安装ed on most 系统s) ~1-2MB per 备份 (excludes 记录s and temp files) Notes Excludes 记录s, temp files, node_模块s, .git to keep 备份 small Tested on WSL2 / Linux 系统s