← Back to Skills Marketplace
servicosmkt

OpenClaw Backup R2

cross-platform ⚠ suspicious
56
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install backup-to-r2
Description
Set up and run complete, encrypted, off-site backups of an OpenClaw install to Cloudflare R2 via restic, plus portable restore. Use when the user wants to ba...
README (SKILL.md)

\r \r

OpenClaw Backup → Cloudflare R2 (via restic)\r

\r This skill helps the user create complete, encrypted, off-site backups of their OpenClaw installation and restore them on any machine. It backs up everything OpenClaw's built-in .bak misses: credentials, agents, workspace, and cron — not just openclaw.json.\r \r

When to use\r

\r

  • The user wants to back up their OpenClaw setup (config, agents, credentials).\r
  • The user lost agents/config (e.g., after openclaw doctor --fix) and wants protection going forward.\r
  • The user wants to restore a backup or migrate OpenClaw to a new PC.\r
  • The user wants automatic daily backups.\r \r

What it backs up\r

\r openclaw backup create --verify produces a verified .tar.gz containing config, credentials, agents, workspace, and cron. restic then encrypts and deduplicates it locally and uploads to Cloudflare R2. Retention keeps 7 daily + 4 weekly + 6 monthly snapshots.\r \r

Prerequisites (guide the user to set these up)\r

\r

  1. restic installed (on PATH or at ./restic/restic.exe).\r
  2. A Cloudflare R2 bucket + S3 API token.\r
  3. Copy .env.example.env and fill RESTIC_REPOSITORY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY.\r
  4. Create .restic-pass with a strong password. Critical: this is the only key to the encrypted backups — store it safely and separately. Without it, restore is impossible.\r
  5. Initialize once: restic init.\r \r

Never commit .env or .restic-pass. They are git-ignored. Never print their contents.\r \r

Running a backup\r

\r

.\backup.ps1\r
```\r
This runs `openclaw backup create --verify`, uploads via restic to R2, prunes old snapshots, and removes the local tar. Logs go to `logs/`.\r
\r
## Testing a restore (safe, non-destructive)\r
\r
```powershell\r
.	est-restore.ps1\r
```\r
Downloads the latest snapshot, extracts it, and validates with `openclaw backup verify`. Does **not** touch the live `.openclaw`.\r
\r
## Restoring (any PC)\r
\r
Copy the `portable/` folder (with `restic/restic.exe`, `.env`, `.restic-pass`) to the target machine and run:\r
```powershell\r
.\portable\restore-portable.ps1\r
```\r
It stops the gateway, pulls the latest backup from R2, and installs to `%USERPROFILE%\.openclaw`, **preserving** the current `.openclaw` as `.openclaw.backup-\x3Cdate>` first.\r
\r
## Automating daily backups (Windows)\r
\r
Register a Task Scheduler job that runs `backup.ps1` daily with `-StartWhenAvailable` so it catches up if the PC was off. See the README for the exact `Register-ScheduledTask` command.\r
\r
## Safety notes\r
\r
- Always confirm the user has saved their `.restic-pass` somewhere safe before relying on backups.\r
- When helping configure, never echo secret values; have the user paste them into `.env`/`.restic-pass` themselves.\r
- The restore preserves the existing `.openclaw` as a timestamped backup, so a restore is reversible.\r
Usage Guidance
Install only if you deliberately want a full OpenClaw backup system that can upload credentials and agent state to your own Cloudflare R2 bucket. Before running it, verify the R2 destination, protect `.env` and `.restic-pass`, test restore non-destructively first, and do not run the real restore unless you are ready for it to replace the active `.openclaw` directory.
Capability Assessment
Purpose & Capability
The stated purpose coherently matches the artifacts: it uses OpenClaw native backups, restic encryption, and Cloudflare R2 storage to back up config, credentials, agents, workspace, and cron data. The capability is high impact because it intentionally handles sensitive OpenClaw state.
Instruction Scope
The manifest includes broad triggers such as automatic backup, disaster recovery, and moving to a new machine, which could activate the skill for general backup or migration requests instead of only explicit OpenClaw-to-R2 backup/restore intent.
Install Mechanism
No install-time payload, obfuscation, bundled binary, or hidden dependency installation was found. The scripts require user-provided restic, OpenClaw, R2 credentials, and a restic password file.
Credentials
Uploading credentials and the full OpenClaw state to third-party cloud storage is purpose-aligned, but the manifest and flow do not provide enough prominent privacy, retention, key-management, or exclusion guidance before sensitive data is sent off-device.
Persistence & Privilege
Daily Task Scheduler automation is disclosed and purpose-aligned, but the real restore script directly installs into %USERPROFILE%\.openclaw and can overwrite in place if moving the existing directory fails, without a documented manual confirmation step.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install backup-to-r2
  3. After installation, invoke the skill by name or use /backup-to-r2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: complete, encrypted OpenClaw backups to Cloudflare R2 using restic. - Backs up all critical OpenClaw data—config, agents, credentials, workspace, and cron—in a verified, deduplicated, encrypted archive. - Off-site uploads to Cloudflare R2 storage, with automatic retention policy (7 daily, 4 weekly, 6 monthly). - Provides portable restore scripts to recover or migrate OpenClaw on any Windows machine. - Includes safe non-destructive test restore and supports daily automation via Windows Task Scheduler. - Emphasizes manual secret management and safety to prevent data loss.
Metadata
Slug backup-to-r2
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is OpenClaw Backup R2?

Set up and run complete, encrypted, off-site backups of an OpenClaw install to Cloudflare R2 via restic, plus portable restore. Use when the user wants to ba... It is an AI Agent Skill for Claude Code / OpenClaw, with 56 downloads so far.

How do I install OpenClaw Backup R2?

Run "/install backup-to-r2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is OpenClaw Backup R2 free?

Yes, OpenClaw Backup R2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does OpenClaw Backup R2 support?

OpenClaw Backup R2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created OpenClaw Backup R2?

It is built and maintained by SIA - Serviços IA & Automações (@servicosmkt); the current version is v1.0.0.

💬 Comments