Claw Backup
/install claw-backup
Claw Backup
Version: 1.0.15
OpenClaw backup skill — schedules backups of your OpenClaw data (memory, config, skills, workspace) to an rclone destination (e.g. Google Drive). Works on macOS, Linux, and Windows (via Git Bash or WSL).
What it does
- Backs up clawd memory, ~/.openclaw (config, skills, modules, workspace, cron), clawd/scripts, and Dev/CursorApps/clawd (excluding
node_modules) - Runs on a schedule (macOS LaunchAgent, Linux cron, or Windows Task Scheduler)
- Applies local and remote retention so old backups are pruned
- Supports
rclone(cloud) orlocal-onlyupload mode
Before you install
- Do not run
curl ... | node(or any one-liner) without first inspecting the script. Prefer git clone and opensetup.jsandinstall-launchagent.sh(or the cron/Task Scheduler scripts) to review what they will do. - Verify the code in
setup.jsand the scheduler installer: confirm only the expected paths are archived and that there is no unexpected network use or commands. If you are uncomfortable reviewing the scripts, do not install. - Confirm repository identity: official source is github.com/vidarbrekke/ClawBackup. The version in this SKILL.md (frontmatter and "Version" line) is the source of truth; the registry may show a different revision number.
- Use encryption for sensitive backups: an encrypted rclone remote (e.g.
rclone crypt) or encrypt archives yourself before offsite storage. - After installation: inspect your LaunchAgent plist, crontab, or Task Scheduler entries, and run a test backup to a local destination first before using a cloud remote.
Restore notes
Each archive includes RESTORE_NOTES.txt with the correct restore targets based
on the configured paths. In general:
openclaw_config/skills→~/.openclaw/skillscursorapps_clawd/skills→~/Dev/CursorApps/clawd/skills(or your chosen path)
Quick start
-
Prerequisites: Node.js, rclone configured for Google Drive, and Bash (or Git Bash on Windows).
rcloneis only required when upload mode isrclone.
-
Recommended install (review first):
git clone https://github.com/vidarbrekke/ClawBackup.git cd ClawBackup node setup.js -
Quick install (not recommended): Only use if you have already inspected the script. Do not run without review:
curl -fsSL https://raw.githubusercontent.com/vidarbrekke/ClawBackup/main/setup.js | node -
Follow the prompts (or use
node setup.js --defaultsfor default paths). Then run the printed test command and install the scheduler as shown.
Security notes
- Backups may contain sensitive data (OpenClaw config, memory, and skills).
- Setup can install recurring scheduler entries (LaunchAgent/cron/Task Scheduler); inspect these after install.
- In cloud mode, credentials come from your existing
rclone config; no extra env vars are required by this repo. - Prefer encrypted destinations (e.g.
rclone crypt) or encrypt archives before offsite storage. - Archives include checksum files (
.sha256) for integrity checks.
Repo and contributions
- Code and full docs: github.com/vidarbrekke/ClawBackup
- Improvements welcome: Open issues or pull requests on the GitHub repo. The project is open for refinements, fixes, and features from any OpenClaw user.
License
MIT
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-backup - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-backup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claw Backup 是什么?
Back up OpenClaw customizations (memory, config, skills, workspace) to cloud storage via rclone, with scheduling + retention. Works on macOS, Linux, and Windows (Git Bash/WSL). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2816 次。
如何安装 Claw Backup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-backup」即可一键安装,无需额外配置。
Claw Backup 是免费的吗?
是的,Claw Backup 完全免费(开源免费),可自由下载、安装和使用。
Claw Backup 支持哪些平台?
Claw Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Backup?
由 vidarbrekke(@vidarbrekke)开发并维护,当前版本 v1.0.7。