← 返回
未分类 中文

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...
为 ~/.openclaw 创建、检查、配置和恢复自包含的备份包。用于完整状态备份、备份列表及配置更改。
silronin silronin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 327
下载
💾 0
安装
1
版本
#latest

概述

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_DIR
  • OPENCLAW_SNAPSHOT_PREFIX
  • OPENCLAW_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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 18:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Config Review Flow

silronin
通过结构化的逐项确认流程审查并确定配置项,适用于需要记录配置审查流程的场景。
★ 0 📥 394
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,007
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,459