📦 LeoYeAI / openclaw-backup

One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history. Powered by MyClaw.ai

568 stars 333 forks 👁 568 watching ⚖️ MIT License
agentbackupclawhubmigrationmyclawopenclawrestoreskill
📥 Clone https://github.com/LeoYeAI/openclaw-backup.git
HTTPS git clone https://github.com/LeoYeAI/openclaw-backup.git
SSH git clone git@github.com:LeoYeAI/openclaw-backup.git
CLI gh repo clone LeoYeAI/openclaw-backup
Loading files...
📄 README.md

English | 中文 | Français | Deutsch | Русский | 日本語 | Italiano | Español

Powered by MyClaw.ai ClaWHub License: MIT


Built on MyClaw.ai

MyClaw.ai is an AI personal assistant platform that gives every user a full server with complete code control, networking, and tool access. Your AI agent isn't just a chatbot — it can write code, manage files, run scripts, and now: back itself up and restore to any new instance.

This skill is part of the MyClaw.ai open skills ecosystem. Install it on any OpenClaw instance in seconds.


🦞 OpenClaw Backup

One-click backup & restore for OpenClaw instances.

Backs up everything — workspace, memory, skills, credentials, bot tokens, API keys, agent session history — into a single archive. Restore to any new OpenClaw instance with zero re-pairing.

⚡ Install

Just tell your OpenClaw agent:

"Help me install backup"

Or manually:

clawhub install myclaw-backup

What Gets Backed Up

ComponentDetails
🧠 WorkspaceMEMORY.md, skills, agent files, SOUL.md, USER.md
⚙️ Configopenclaw.json (bot tokens, API keys, model config)
🔑 CredentialsChannel pairing state — no re-pairing after restore
📜 SessionsFull agent conversation history
⏰ Cron jobsAll scheduled tasks
🛡️ ScriptsGuardian, watchdog, start-gateway

Usage

Create a backup

bash scripts/backup.sh /tmp/openclaw-backups

Restore (always dry-run first)

bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz --dry-run
bash scripts/restore.sh openclaw-backup_TIMESTAMP.tar.gz

Browser UI (download / upload / restore)

bash scripts/serve.sh start --token $(openssl rand -hex 16) --port 7373
# Open: http://localhost:7373/?token=YOUR_TOKEN

Migrate to a new server

  • Start server on old machine → download backup via browser
  • On new machine: install OpenClaw → install this skill → upload backup → restore
  • All channels reconnect automatically — no re-pairing needed

⚠️ Security

This skill handles highly sensitive data (bot tokens, API keys, credentials).

  • Always set --token when starting the HTTP server (required, server refuses to start without it)
  • Backup archives are chmod 600 automatically
  • Always run --dry-run before applying a restore
  • Never expose the backup server to the public internet without TLS

ClaWHub

Published at: clawhub.com/skills/myclaw-backup


Powered by MyClaw.ai