Xpersona
M

myclaw-backup

CLAWHUB · Unverified

Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Part of the MyClaw.ai (https://myclaw.ai/skills) open skills ecosyst... Skill: myclaw-backup Owner: leoyeai Summary: Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Part of the MyClaw.ai (https://myclaw.ai/skills) open skills ecosyst... Tags: backup:1.7.0, latest:2.0.0, migration:1.7.0, myclaw:1.7.0, restore:1.7.0 Version history: v2.0.0 | 2026-03-28T07:13:04.896Z | user Update ecosystem links to myclaw.ai/skills v1.7.0 | 2026-03-03T06:02:50.642Z

62
Rank
84
Safety
2.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 2.4K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17173yy3nw4w4agfswx5k0wz583g31t:myclaw-backup
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-leoyeai-myclaw-backup/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

95,169 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: myclaw-backup
description: "Backup and restore all OpenClaw configuration, agent memory, skills, and workspace data. Part of the MyClaw.ai (https://myclaw.ai/skills) open skills ecosystem — the AI personal assistant platform that gives every user a full server with complete code control. Use when the user wants to create a snapshot of their OpenClaw instance, schedule periodic backups, restore from a backup, migrate to a new server, download a backup file locally, upload a backup file from another machine, or protect against data loss. Includes a built-in HTTP server for browser-based download/upload/restore without needing cloud storage. TRUST BOUNDARY: This skill archives and restores highly sensitive data including bot tokens, API keys, and channel credentials. Only install if you trust the operator. Always use --dry-run before restore. Never start the HTTP server without a --token."
metadata:
  openclaw:
    requires:
      bins: ["node", "rsync", "tar", "python3", "openclaw"]
    trust: high
    permissions:
      - read: ~/.openclaw
      - write: ~/.openclaw
      - network: listen
---

# MyClaw Backup

> **Built on [MyClaw.ai](https://myclaw.ai)** — the AI personal assistant platform that gives every user a full server with complete code control, networking, and tool access. This skill is part of the [MyClaw open skills ecosystem](https://myclaw.ai/skills).

Backs up all critical OpenClaw data to a single `.tar.gz` archive and restores it to any OpenClaw instance. Includes a built-in HTTP server for browser-based backup management.

## ⚠️ Trust Boundary & Security Model

This skill handles **highly sensitive data**: bot tokens, API keys, channel credentials, session history. Understand the security model before use:

### What each script does
- **backup.sh** — reads `~/.openclaw/` and writes a `chmod 600` archive to disk. No network access.
- **restore.sh** — overwrites `~/.openclaw/` from an archive. Requires typing `yes` to confirm. Always run `--dry-run` first.
- **serve.sh / server.js** — starts a local HTTP server. Token is **mandatory** (refuses to start without one). Shell-execution endpoints (`/backup`, `/restore`) are **localhost-only** — remote access can only download and upload files, not trigger execution.
- **schedule.sh** — modifies your system crontab to run backup.sh on a schedule. Prints the cron entry before adding. Use `--disable` to remove.

### Access control summary
| Endpoint | Remote (token required) | Localhost only |
|---|---|---|
| GET /health | ✅ (no token) | — |
| GET /backups | ✅ | — |
| GET /download/:file | ✅ | — |
| POST /upload | ✅ | — |
| POST /backup | ❌ | ✅ |
| POST /restore | ❌ | ✅ |

### Best practices
- Never start the HTTP server without `--token`
- Never expose the HTTP server to the public internet without TLS
- Always run `restore.sh --dry-run` before applying a restore
- Store backup archives securely — they contain all credentials

## Dependencies

Requires: `node`, `rsync`, `tar`, 

_meta.json

{
  "ownerId": "kn7fymx2je994eh44j51che37s824w29",
  "slug": "myclaw-backup",
  "version": "2.0.0",
  "publishedAt": 1774681984896
}

references/what-gets-saved.md

# OpenClaw Backup — What Gets Saved

## Backed Up ✅

| Component | Path | Why |
|---|---|---|
| **Workspace** | `~/.openclaw/workspace/` | Agent memory, MEMORY.md, skills, USER.md, SOUL.md, all custom files |
| **Gateway config** | `~/.openclaw/openclaw.json` | Models, channels config, **bot tokens**, **API keys**, plugins |
| **Credentials** | `~/.openclaw/credentials/` | Channel pairing state (telegram-allowFrom, telegram-pairing, etc.) |
| **Channel state** | `~/.openclaw/telegram/` etc. | Update offsets, session data — allows resume without re-pairing |
| **Agent config** | `~/.openclaw/agents/main/agent/` | Model provider config (apiKey, baseUrl, custom models) |
| **Session history** | `~/.openclaw/agents/main/sessions/` | Full conversation history (.jsonl) |
| **Devices** | `~/.openclaw/devices/` | Paired nodes/phones (paired.json) |
| **System skills** | `~/.openclaw/skills/` | Installed skills (find-skills, etc.) |
| **Cron jobs** | `~/.openclaw/cron/` | Scheduled tasks |
| **Identity** | `~/.openclaw/identity/` | Device identity files |
| **Scripts** | `guardian.sh`, `gw-watchdog.sh`, `start-gateway.sh` | Auto-restart and guardian logic |

## NOT Backed Up ❌ (by design)

| Component | Reason |
|---|---|
| `openclaw.log` | Runtime log, not needed for restore |
| Media files (images/audio/video) | Too large, easily regenerated |
| `node_modules/` | Reinstall with npm |
| `.git/` | Source control managed separately |
| Binary assets (png/jpg/mp4/gif/webp) | Size; regenerate as needed |
| `subagents/runs.json` | Ephemeral sub-agent run state, not needed |
| `canvas/index.html` | Static system file, reinstalled with OpenClaw |

## Security Note

The backup archive contains **bot tokens, API keys, and session credentials**.

- Archive is created with `chmod 600` (owner read/write only)
- Store backups in a secure location
- Never commit the `.tar.gz` to a public git repo
- Transfer via scp/sftp, not plain HTTP

## Post-Restore

After restore, all channels reconnect automatically — **no re-pairing needed**.

If Telegram is silent after 30 seconds, send `/start` to your bot to re-trigger the connection.

### Restore to a New Instance

```bash
# On the NEW machine (after installing OpenClaw):
chmod +x restore.sh
./restore.sh /path/to/openclaw-backup_TIMESTAMP.tar.gz --dry-run   # preview first
./restore.sh /path/to/openclaw-backup_TIMESTAMP.tar.gz             # apply
# That's it — no re-pairing needed.
```

skill-card.md

## Description:

MyClaw Backup helps an OpenClaw user create, schedule, download, upload, and restore backups of OpenClaw configuration, memory, skills, credentials, channel state, and workspace data.

This skill is ready for commercial/non-commercial use.

## Publisher:

[leoyeai](https://clawhub.ai/user/leoyeai)

### License/Terms of Use:

MIT-0

## Use Case:

External OpenClaw users and developers use this skill to protect, migrate, or recover an OpenClaw instance by creating local backup archives, scheduling recurring backups, and restoring from trusted archives.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Backup archives can contain bot tokens, API keys, channel credentials, and session history.

Mitigation: Keep archives encrypted or otherwise strongly protected, avoid committing or sharing them, and transfer them only over protected channels.

Risk: Restore and upload paths can affect sensitive OpenClaw state and should not process untrusted archives.

Mitigation: Run restores only from trusted archives, use dry-run before applying a restore, and treat the restore and upload web server paths as needing security fixes before remote use.

Risk: The HTTP backup server can expose sensitive backup operations or tokenized URLs if reachable on an unprotected network.

Mitigation: Do not expose the HTTP server on a network without TLS, use a strong token, and avoid sharing tokenized URLs.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/leoyeai/skills/myclaw-backup)
- [Publisher profile](https://clawhub.ai/user/leoyeai)
- [MyClaw skills ecosystem](https://myclaw.ai/skills)
- [MyClaw](https://myclaw.ai)
- [OpenClaw Backup - What Gets Saved](references/what-gets-saved.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands, JSON snippets, and operational status text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create local .tar.gz backup files, restore OpenClaw state, start a token-protected local HTTP backup manager, or modify cron scheduling when the user runs the provided scripts.]

## Skill Version(s):

2.0.0 (source: server release metadata; artifact _meta.json reports 1.7.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to myclaw-backup and adjacent AI workflows.