← 返回
开发者工具 中文

agent-backup-transfer

Backup and restore your OpenClaw agent's workspace and config to preserve memory, identity, and settings or migrate to a new computer.
备份和恢复OpenClaw代理的工作区与配置,以保留记忆、身份及设置,或迁移至新电脑。
pacifier00
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 566
下载
💾 9
安装
1
版本
#latest

概述

SKILL.md - OpenClaw Backup

Backup and restore your OpenClaw agent (workspace + config).

When to Use

  • User wants to create a backup of their agent
  • User wants to move to a new computer
  • User asks how to preserve their agent's memory/identity
  • Important memories or updates happened — time to save!

What Gets Backed Up

  1. Workspace~/.openclaw/workspace/ (agent memory, identity, files)
  2. OpenClaw Config~/.openclaw/ (settings, sessions, agents)

Commands

Create Backup (Manual)

cd ~/.openclaw/workspace
./skills/openclaw-backup/openclaw-backup.sh create

Creates: ~/openclaw-backups/openclaw-backup-YYYY-MM-DD_HHMMSS.tar.gz

Keeps last 10 backups automatically.

Auto-Backup Setup

./skills/openclaw-backup/openclaw-backup.sh setup-auto

Creates a hook at ~/.openclaw/workspace/.hooks/post-memory-save.sh

Call it manually when important memories are saved:

~/.openclaw/workspace/.hooks/post-memory-save.sh

Or add daily backups via crontab:

crontab -e
# Add: 0 2 * * * ~/.openclaw/workspace/skills/openclaw-backup/openclaw-backup.sh create

List Backups

./skills/openclaw-backup/openclaw-backup.sh list

Restore from Backup

./skills/openclaw-backup/openclaw-backup.sh restore ~/Downloads/openclaw-backup-2026-03-09.tar.gz

Moving to a New Computer

1. On OLD computer:

cd ~/.openclaw/workspace
./skills/openclaw-backup/openclaw-backup.sh create
ls ~/openclaw-backups/

2. Copy the .tar.gz file to new computer

  • USB drive, cloud sync, email, Discord... whatever works
  • Put it in your Downloads folder or anywhere you can find

3. On NEW computer:

If OpenClaw is already installed:

tar -xzf ~/Downloads/openclaw-backup-2026-03-09.tar.gz -C ~
openclaw gateway start

If OpenClaw is NOT installed:

# 1. Install OpenClaw (see docs)
# 2. Then restore:
tar -xzf ~/Downloads/openclaw-backup-2026-03-09.tar.gz -C ~
openclaw gateway start

4. Done!

Open http://127.0.0.1:18789/ — your agent is back! 🎉

Requirements

  • Linux/WSL2 (tested on Ubuntu/WSL2)
  • tar (pre-installed on most systems)
  • ~1-2MB per backup (excludes logs and temp files)

Notes

  • Excludes logs, temp files, node_modules, .git to keep backup small
  • Tested on WSL2 / Linux systems

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 21:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,060
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,146
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,777