← 返回 Skills 市场
pacifier00

agent-backup-transfer

作者 Pacifier00 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
270
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

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
安全使用建议
This skill appears to do exactly what it says: create, list, restore, and optionally hook automatic backups of your OpenClaw workspace and config. Before installing or using it, consider the following: - Backups include identity and config files (e.g., .openclaw/openclaw.json, identity, agents) which may contain keys or tokens. Treat backup tar.gz files as sensitive secrets. - When moving backups between machines, use secure transfer channels (encrypted cloud storage, SFTP, or an encrypted USB drive). Avoid sending raw backups over email, instant messaging, or other unencrypted/third-party channels unless you encrypt them first. - The restore action extracts into $HOME and can overwrite files. Verify the archive contents (e.g., tar -tzf <file>) before restoring and keep backups of any files you might need to preserve. - The auto-hook expects the backup script to be located at ~/.openclaw/workspace/skills/openclaw-backup/openclaw-backup.sh; if your skills are stored elsewhere the hook may not find it. Review the created hook script before enabling automated runs or adding it to cron. - As a precaution, inspect the included openclaw-backup.sh yourself (it is provided) and consider encrypting stored backups (e.g., use gpg) if you need to store them long-term or on third-party services.
功能分析
Type: OpenClaw Skill Name: agent-backup-transfer Version: 1.0.0 The skill provides standard backup and restore functionality for the OpenClaw agent's workspace and configuration files. The bash script (openclaw-backup.sh) uses standard tools like tar to manage local archives in the user's home directory and includes basic safety features like backup rotation and confirmation prompts during restoration.
能力评估
Purpose & Capability
The name/description match the provided script and SKILL.md. The script backs up ~/.openclaw/workspace and relevant config files (.openclaw/openclaw.json, identity, agents) and provides create/list/restore/setup-auto commands as advertised.
Instruction Scope
Instructions stay within the stated purpose (creating/restoring backups and installing a hook). The restore command extracts the archive into $HOME and will overwrite files; the script prompts for confirmation before restoring. The SKILL.md recommends transferring backups via arbitrary channels (email, Discord, cloud)—this is a user guidance point because backups include sensitive data.
Install Mechanism
No install spec; this is an instruction-only skill with an included bash script. Nothing is downloaded from external URLs or written outside the user's home directory by the script itself.
Credentials
The skill requests no environment variables or external credentials (proportionate). However, backups intentionally include identity/config files which likely contain sensitive tokens/keys; that is expected for a full agent backup but requires the user to protect the generated tar.gz files appropriately.
Persistence & Privilege
always is false and the script does not request elevated or system-wide privileges. The setup-auto command creates a hook under ~/.openclaw/workspace/.hooks which is limited to the user's home and does not alter other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-backup-transfer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-backup-transfer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Major refactor: Unified all backup and restore functionality into a single script, openclaw-backup.sh. - Removed legacy scripts/backup.sh and references/restore.md for a simpler, script-first workflow. - New features: Auto-backup hook support, backup listing, and step-by-step agent migration guidance. - Rotation now keeps the last 10 backups automatically (up from 7). - Updated documentation with clearer instructions, usage scenarios, and Linux/WSL2 requirements.
元数据
Slug agent-backup-transfer
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 270 次。

如何安装 agent-backup-transfer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-backup-transfer」即可一键安装,无需额外配置。

agent-backup-transfer 是免费的吗?

是的,agent-backup-transfer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

agent-backup-transfer 支持哪些平台?

agent-backup-transfer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 agent-backup-transfer?

由 Pacifier00(@pacifier00)开发并维护,当前版本 v1.0.0。

💬 留言讨论