返回顶部
m

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 wants to create a snapshot, restore from backup, migrate to a new machine, or protect against data loss. Supports dry-run preview, automatic pre-restore snapshots, gateway token preservation, credential permission hardening, and a built-in HTTP server for browser-based management. Only requires Node.js (no bash/rsync/python needed).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 3.0.2
安全检测
已通过
335
下载量
0
收藏
概述
安装方式
版本历史

myopenclaw-backup-restore

# MyOpenClaw Backup Restore — Cross-Platform > **Part of the [MyClaw.ai](https://myclaw.ai) open skills ecosystem.** > Full documentation (中文): see [README.md](README.md) ## Quick Start ```bash # 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](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 ```bash 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 ```bash 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 ```bash node scripts/backup-restore.js list [--backup-dir <dir>] ``` ## HTTP Server ```bash node scripts/server.js --token <secret> [--port 7373] [--backup-dir <dir>] ``` - Web UI at `http://localhost:<port>/?token=<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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 myopenclaw-backup-restore-1776195268 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 myopenclaw-backup-restore-1776195268 技能

通过命令行安装

skillhub install myopenclaw-backup-restore-1776195268

下载 Zip 包

⬇ 下载 myopenclaw-backup-restore v3.0.2

文件大小: 26.13 KB | 发布时间: 2026-4-15 10:39

v3.0.2 最新 2026-4-15 10:39
v3.0: Full rewrite. Auto-discover workspace-* dirs, extensions, clawhub, delivery-queue, memory index. Auto-discover channel dirs. Improved multipart upload. Removed redundant bash scripts. Pure Node.js cross-platform. Backward compatible with v1/v2.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部