← 返回
效率工具 中文

MyOpenClaw Backup Restore

Cross-platform backup and restore for OpenClaw. Works on Windows, macOS, and Linux — backups created on any OS can be restored on any other OS. Use when user...
跨平台备份与恢复,专为OpenClaw设计。支持Windows、macOS和Linux——在任何操作系统上创建的备份都可在其他操作系统上恢复。适用于用户...
beyound87
效率工具 clawhub v3.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 809
下载
💾 6
安装
1
版本
#latest

概述

MyOpenClaw Backup Restore — Cross-Platform

> Part of the MyClaw.ai open skills ecosystem.

> Full documentation (中文): see README.md

Quick Start

# Backup
node scripts/backup-restore.js backup

# List backups
node scripts/backup-restore.js list

# Restore (always dry-run first!)
node scripts/backup-restore.js restore <archive> --dry-run
node scripts/backup-restore.js restore <archive>

No setup, no dependencies beyond Node.js.

What Gets Backed Up

Workspace (MEMORY.md, SOUL.md, etc.) • All workspace-* dirs (multi-agent teams) • Gateway config (tokens, API keys, channels) • Skills • Extensions • Credentials & channel pairing state • Agent config & session history • Devices • Identity • Cron jobs • Guardian scripts • ClawHub registry • Delivery queue • Memory index

Excluded: logs, node_modules, .git, media files, browser data, .lock/.deleted.* files.

See references/what-gets-saved.md for full details.

Cross-Platform

Backups use tar.gz (native on Win10+/macOS/Linux). Auto-fallback to ZIP on older Windows. Archives from any OS restore on any OS.

Commands

backup

node scripts/backup-restore.js backup [--output-dir <dir>]

Creates openclaw-backup_{agent}_{timestamp}.tar.gz in ~/openclaw-backups/. Auto-prunes (keeps last 7). On non-Windows: chmod 600 applied.

restore

node scripts/backup-restore.js restore <archive> [--dry-run] [--overwrite-gateway-token]

Safety features:

  • --dry-run: Preview without changes
  • Pre-restore snapshot: Auto-saves current state before overwriting
  • Gateway token preservation: Keeps new server's token (prevents Control UI mismatch)
  • Interactive confirmation: Must type yes
  • Credential hardening: chmod 700/600 on non-Windows
  • Auto-restart: Starts gateway after restore
  • Legacy compatibility: Handles v1 (bash) and v2 archive structures

list

node scripts/backup-restore.js list [--backup-dir <dir>]

HTTP Server

node scripts/server.js --token <secret> [--port 7373] [--backup-dir <dir>]
  • Web UI at http://localhost:/?token=
  • Remote: list, download, upload only
  • Localhost: backup, restore (shell execution restricted to localhost)
  • Token is mandatory — server won't start without one

Security

Archives contain bot tokens, API keys, and credentials. Store securely. Never commit to public repos. Transfer via encrypted channels.

版本历史

共 1 个版本

  • v3.0.2 当前
    2026-03-30 12:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Coding Lead

beyound87
用于实施导向智能体的编码执行技能。当前生产路径仅限claude,简单任务直接执行,中等任务优先通过ACP运行。
★ 0 📥 2,588
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,953
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,096