/install bookers-openclaw-backup
OpenClaw Backup
Use this skill as the unified backup and restore entrypoint for ~/.openclaw.
Main commands
Create a backup bundle:
bash scripts/create_backup.sh
List existing bundles:
bash scripts/list_backups.sh
Show current configuration and effective values:
bash scripts/show_config.sh
Change the default backup directory:
bash scripts/set_backup_dir.sh /absolute/path
Select a bundle, audit it, extract it, and print the restore command:
bash scripts/select_and_restore.sh
Bundle format
Each backup is a self-contained tar.gz bundle with this structure:
occt7pkbak-YYYYMMDD-HHMMSS/
├── .openclaw/
├── restore.sh
├── manifest.txt
└── SHA256SUMS
The bundled restore.sh is the primary restore path.
Public defaults vs local overrides
Public default path:
~/backups/openclaw-snapshots
Local/private setups can override that path in two ways:
- environment variable:
OPENCLAW_SNAPSHOT_DIR - local config file:
config.env
Configuration model
This skill keeps long-term local defaults in config.env.
Current configurable values:
OPENCLAW_SNAPSHOT_DIROPENCLAW_SNAPSHOT_PREFIXOPENCLAW_SNAPSHOT_KEEP
Priority order is:
- command-line flags
- skill config file (
config.env) OPENCLAW_SNAPSHOT_*environment variables- built-in defaults
Important: in the current design, values stored in config.env override same-name environment variables.
If you want a one-off override, prefer command-line flags such as --out-dir.
show_config.sh shows stored config values, environment values, and final effective values.
CLI notes
Primary CLI flag for backup location:
--out-dir
Compatibility alias still accepted:
--backup-dir
Safety model
- integrity verification is mandatory during restore
- symbolic links and special files are rejected
- tar entries are audited before extraction, including hard-link rejection
- dangerous target paths are rejected
- the restore target basename must match the bundled source basename, normally
.openclaw - the bundle is portable across environments; restore uses the current runtime target path rather than a build-time HOME lock
- do not rename the extracted bundle root before running
restore.sh
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bookers-openclaw-backup - 安装完成后,直接呼叫该 Skill 的名称或使用
/bookers-openclaw-backup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Booker's OpenClaw Backup 是什么?
Create, inspect, configure, and restore self-contained backup bundles for ~/.openclaw. Use when the user wants full-state backup, backup listing, changing th... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。
如何安装 Booker's OpenClaw Backup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bookers-openclaw-backup」即可一键安装,无需额外配置。
Booker's OpenClaw Backup 是免费的吗?
是的,Booker's OpenClaw Backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Booker's OpenClaw Backup 支持哪些平台?
Booker's OpenClaw Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Booker's OpenClaw Backup?
由 Silronin(@silronin)开发并维护,当前版本 v1.0.0。