← 返回 Skills 市场
vidarbrekke

Claw Backup

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

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) or local-only upload mode

Before you install

  • Do not run curl ... | node (or any one-liner) without first inspecting the script. Prefer git clone and open setup.js and install-launchagent.sh (or the cron/Task Scheduler scripts) to review what they will do.
  • Verify the code in setup.js and 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/skills
  • cursorapps_clawd/skills~/Dev/CursorApps/clawd/skills (or your chosen path)

Quick start

  1. Prerequisites: Node.js, rclone configured for Google Drive, and Bash (or Git Bash on Windows).

    • rclone is only required when upload mode is rclone.
  2. Recommended install (review first):

    git clone https://github.com/vidarbrekke/ClawBackup.git
    cd ClawBackup
    node setup.js
    
  3. 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
    
  4. Follow the prompts (or use node setup.js --defaults for 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

安全使用建议
This repo appears to be a legitimate backup helper, but review before running: 1) git clone the repo and inspect setup.js and install-launchagent.sh (do not run curl | node unless you trust and have reviewed the script); 2) run setup.js with default/local-only and perform a test backup to a local folder first to confirm the staged paths are what you expect; 3) prefer an encrypted rclone remote (rclone crypt) or encrypt archives yourself before cloud upload; 4) on macOS the installer may prompt for sudo only to remove an old system LaunchDaemon — confirm the prompt and that you want that behavior; 5) verify the generated LaunchAgent plist / crontab / Task Scheduler entry after install and know how to remove it (unload plist / remove cron line / delete scheduled task) if desired.
功能分析
Type: OpenClaw Skill Name: claw-backup Version: 1.0.7 The OpenClaw AgentSkills skill bundle is classified as benign. The skill's stated purpose is to back up OpenClaw data to cloud storage via `rclone` with scheduling and retention. All files (SKILL.md, install-launchagent.sh, setup.js, README.md) are transparent about their operations. The `SKILL.md` and `README.md` provide clear security warnings, encourage code review, and advise on encryption. The `setup.js` script, which generates the backup script and scheduler configuration, includes robust input sanitization (`escapeBash`, `escapePlist`) to prevent shell or XML injection from user input. While the skill handles sensitive data and sets up scheduled tasks, these actions are explicitly documented and are core to its functionality, with no evidence of unauthorized data exfiltration, stealthy persistence, or other malicious intent. The `install-launchagent.sh` script uses `sudo` for a specific, explained cleanup task to ensure the backup runs with appropriate user privileges.
能力评估
Purpose & Capability
Name/description (backup OpenClaw data to rclone/local with scheduling and retention) align with the included files and runtime behavior: setup.js generates a backup script and plist/cron entries, and install-launchagent.sh installs a user LaunchAgent. The files the scripts access (~/.openclaw, clawd, Dev/CursorApps/clawd, project markdown) are exactly the stated backup targets.
Instruction Scope
SKILL.md and README explicitly describe what will be read and written and warn users to inspect scripts before running. The setup and backup scripts only read local paths, produce archives, write a manifest (hostname/os), and call rclone for transfer when configured; they do not embed remote endpoints or unexpected network callbacks beyond rclone copy.
Install Mechanism
There is no external install spec in the registry entry; recommended install is via git clone + running the bundled setup.js. The package does include local scripts (setup.js and install-launchagent.sh) that are written to disk when run — no downloads from arbitrary URLs occur by default. SKILL.md does include a discouraged curl | node one-liner and explicitly warns against running it without inspection.
Credentials
The skill declares no required environment variables or credentials. Cloud uploads use the user's existing rclone config (no new API keys requested). The files and directories accessed are consistent with backing up OpenClaw data; no unrelated credential or system-wide secrets are requested in the code.
Persistence & Privilege
The skill installs scheduled jobs (LaunchAgent on macOS, cron on Linux, Task Scheduler on Windows) which is reasonable for a backup tool. The macOS installer will attempt to remove an old system LaunchDaemon using sudo if one exists — this requires user approval (password) and is documented in the script and SKILL.md. The skill does not set always:true and does not modify other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.7
- Added a new "Before you install" section with strong security and code review warnings. - Updated installation instructions to emphasize inspecting setup scripts before running. - Clarified that "curl ... | node" installs are not recommended and should only be used after script review. - Noted that the version in SKILL.md is the source of truth for the official release. - Expanded reminders about verifying the scheduler scripts and using encryption for sensitive data.
v1.0.6
- Added a frontmatter section with name and description to SKILL.md for improved metadata. - No changes to code or functionality.
v1.0.5
- No code or functional changes in this release. - Minor revision to the skill description for clarity in SKILL.md.
v1.0.4
- Updated install instructions: recommends git clone + review before running setup, with quick curl method now for advanced users. - Enhanced security notes: clarifies scheduler installation and `rclone config` credential handling. - Minor documentation updates for clarity and completeness.
v1.0.3
Version 1.0.2 - Major cleanup: removed 11 legacy/unused files (including install, uninstall, enforcement, and watchdog scripts). - Added new setup and install scripts (setup.js, install-launchagent.sh) to streamline installation. - Project refocused on backup functionality; updated documentation to match new scope and provide clear setup/restore instructions. - Now supports scheduled backups of OpenClaw customizations with rclone/local-only modes. - Cross-platform scheduling supported (macOS, Linux, Windows).
v1.0.2
Version 1.0.2 - Major cleanup: removed 11 legacy/unused files (including install, uninstall, enforcement, and watchdog scripts). - Added new setup and install scripts (setup.js, install-launchagent.sh) to streamline installation. - Project refocused on backup functionality; updated documentation to match new scope and provide clear setup/restore instructions. - Now supports scheduled backups of OpenClaw customizations with rclone/local-only modes. - Cross-platform scheduling supported (macOS, Linux, Windows).
v1.0.1
Major update: Claw Backup skill replaced with Ollama Memory Embeddings for OpenClaw. - Replaces the previous backup-focused skill with a new skill to route OpenClaw memory search embeddings through Ollama. - Adds interactive and non-interactive setup for selecting and managing embedding models. - Provides GGUF auto-import from local caches, with configurable normalization and fallback. - Includes new install, verification, drift enforcement, and watchdog scripts for idempotent config management. - Skill configures only user settings; does not modify OpenClaw system code. - Documentation extensively rewritten to reflect new functionality, options, and usage instructions. - License and security policy documentation updated; obsolete setup scripts removed.
v1.0.0
Initial release of claw-backup. - Schedule cloud backups of OpenClaw memory, configurations, skills, and workspace to Google Drive. - Cross-platform support: macOS (LaunchAgent), Linux (cron), Windows (Task Scheduler or Git Bash/WSL). - Automatic retention policy prunes old backups both locally and on Drive. - Quick setup with one command; no git required. - Requires Node.js, rclone (configured for Google Drive), and Bash.
元数据
Slug claw-backup
版本 1.0.7
许可证
累计安装 24
当前安装数 23
历史版本数 8
常见问题

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。

💬 留言讨论