Skip to content

LeoYeAI/openclaw-backup

Repository files navigation

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

Component Details
🧠 Workspace MEMORY.md, skills, agent files, SOUL.md, USER.md
⚙️ Config openclaw.json (bot tokens, API keys, model config)
🔑 Credentials Channel pairing state — no re-pairing after restore
📜 Sessions Full agent conversation history
⏰ Cron jobs All scheduled tasks
🛡️ Scripts Guardian, 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

  1. Start server on old machine → download backup via browser
  2. On new machine: install OpenClaw → install this skill → upload backup → restore
  3. 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors