Openclaw Backup

v2.0.1

自动备份 OpenClaw 本地存储配置文件。支持 Windows/Linux/Mac。 使用场景:(1) 定期备份配置 (2) 迁移配置 (3) 恢复配置 这是一个 OpenClaw 备份工具 skill,提供交互式配置向导。

0· 384·1 current·1 all-time
byKiLiminal@hi-jiajun

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for hi-jiajun/openclaw-backup-hiliang.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Openclaw Backup" (hi-jiajun/openclaw-backup-hiliang) from ClawHub.
Skill page: https://clawhub.ai/hi-jiajun/openclaw-backup-hiliang
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install openclaw-backup-hiliang

ClawHub CLI

Package manager switcher

npx clawhub@latest install openclaw-backup-hiliang
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description promise a local backup tool for OpenClaw and the included scripts (setup.sh, backup.sh) implement that behavior for Linux/Mac. However, SKILL.md and README also reference Windows PowerShell scripts (setup.ps1, backup.ps1) which are not present in the bundle — mismatch between claimed cross-platform support and provided files. The SKILL.md instructs users to git-clone a GitHub repo (normal for install) which means the actual installed code could differ from the packaged files.
Instruction Scope
Runtime instructions tell the agent/user to clone the repo and run the provided setup/backup scripts. The scripts operate on files under the user's home (~/.openclaw), create backup directories under the user's home, and manage/rotate backups. They explicitly copy credentials/secret files (credentials/), which is expected for a backup tool but is sensitive and should be handled carefully. There are no instructions to read unrelated system paths or to transmit data externally.
Install Mechanism
There is no formal install spec in the skill package (instruction-only), and SKILL.md recommends cloning from a GitHub repo. Cloning from GitHub is common but means the installer will fetch third-party code. The packaged files themselves include the shell scripts, so no binary downloads or obscure URLs are present in the bundle — lower risk than arbitrary downloads, but the repo URL should be verified and code inspected before execution.
Credentials
The skill declares no required environment variables or credentials. The scripts use HOME/hostname and default OPENCLAW_HOME (~/.openclaw), which is appropriate. The scripts do access and copy credential files from the OpenClaw config (expected for backups) — this is proportionate to the stated purpose but elevates sensitivity; backups are stored unencrypted by default.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. It creates a local config file (config.sh) inside the skill scripts directory and writes backups under user-owned paths — no system-wide privilege escalation or modification of other skills' configs is observed.
Assessment
This skill mostly does what it says: it copies OpenClaw configuration (including credentials) into local backup folders and manages retention. Before installing/running: (1) verify the GitHub repo URL in SKILL.md matches a trusted source and inspect the actual scripts you will run (the package here contains setup.sh and backup.sh, but the Windows .ps1 files referenced are missing); (2) be aware backups include sensitive credential files — store backups in a secure location and consider encrypting them before leaving your machine or uploading them; (3) prefer to run the included scripts from the packaged copy or review the remote repo contents before executing a git clone; (4) if you need Windows support, request or verify the missing PowerShell scripts rather than running unknown code; (5) consider restricting file permissions on backup directories and adding an encryption step to the workflow to protect secrets.

Like a lobster shell, security has layers — review code before you run it.

latestvk97adjdwj0bfsnecq0txt4gspd82gxgv
384downloads
0stars
9versions
Updated 1mo ago
v2.0.1
MIT-0

OpenClaw Backup Skill

自动备份 OpenClaw 配置,让数据永不丢失

功能

  • ✅ 交互式配置向导
  • ✅ 每日自动备份(可配置时间)
  • ✅ 保留最近 N 个备份
  • ✅ 旧备份自动转移和清理
  • ✅ 按容量自动清理旧备份
  • ✅ 支持 Windows / Linux / Mac

支持平台

平台脚本
Windowsscripts/backup.ps1
Linuxscripts/backup.sh
Macscripts/backup.sh

安装方式

Windows

# 克隆到 OpenClaw skills 目录
cd $env:USERPROFILE\.openclaw\skills
git clone https://github.com/Hi-Jiajun/openclaw-backup.git

Linux / Mac

# 克隆到你的 OpenClaw skills 目录
cd ~/.openclaw/skills
git clone https://github.com/Hi-Jiajun/openclaw-backup.git

快速开始

Windows

# 首次配置(交互式向导)
powershell -ExecutionPolicy Bypass -File "scripts/setup.ps1"

# 执行备份
powershell -ExecutionPolicy Bypass -File "scripts/backup.ps1"

Linux / Mac

# 首次配置(交互式向导)
chmod +x scripts/setup.sh
./scripts/setup.sh

# 执行备份
chmod +x scripts/backup.sh
./scripts/backup.sh

配置文件说明

setup.ps1 / setup.sh 会生成配置文件

首次运行 setup.ps1 或 setup.sh 会创建配置文件,保存你的配置。

backup.ps1 / backup.sh 会自动加载配置

脚本会自动读取配置文件,无需手动修改。

备份内容

目录/文件说明
openclaw.json主配置文件
agents/Agent 配置
credentials/凭证文件(含 API 密钥)
cron/定时任务
devices/配对设备
identity/身份配置
skills/全局技能

注意事项

  1. credentials/ 包含敏感信息 - 妥善保管备份
  2. 首次使用建议运行交互式配置
  3. 建议设置自动备份任务防止数据丢失

Comments

Loading comments...