📦 OpenClaw Backup — OpenClaw 备份

v1.0.0

备份 OpenClaw workspace, config, and 状态 using the built-in `OpenClaw 备份 创建` command. Also handles 清理up of old 备份s and 健康 verification...

0· 0·0 当前·0 累计
joeyiptk 头像by @joeyiptk (larryjoe)
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
安全
high confidence
The 技能's code and 运行time instructions are coherent with its 状态d 备份 purpose; it only calls the OpenClaw 命令行工具, manages 归档s in your home directory, and can 创建 an OpenClaw cron job — there are no unexplAIned network 端点s, 凭证 requirements, or 安装 steps.
评估建议
This 技能 应用ears to do exactly what it says, but review these points before 安装ing: - Confirm you trust the 安装ed OpenClaw 命令行工具 binary on the machine: the scripts call only 'OpenClaw' — if that binary is malicious, any 技能 using it inherits that risk. - 备份s include 凭证s, 会话 历史, and workspace files. Even if OpenClaw 加密s 凭证s, store the ~/OpenClaw_备份s/ directory 安全ly and consider 添加itional 加密ion if you will copy 归档s off-machine. - The 技能 supports overriding the 备份 directory via OpenClaw_备份_DIR (not 列出e...
详细分析 ▾
用途与能力
The name/description match what the files do: scripts invoke the OpenClaw 命令行工具 to 创建/验证 备份s, 列出/验证 归档s, 删除 old 归档s, and 添加 an OpenClaw cron job. There are no unrelated binaries, extra cloud 凭证s, or surprising external 服务s 请求ed.
指令范围
Instructions and scripts operate on ~/OpenClaw_备份s/ and call 'OpenClaw' commands. They explicitly back up config, 凭证s (noted as 加密ed by OpenClaw), 会话 历史 and workspace files — this is 应用ropriate for a 备份 技能, but it does mean 备份s will contAIn sensitive data. Scripts do not attempt to read or transmit other 系统 files or contact unknown 端点s.
安装机制
This is an instruction-only 技能 (no 安装er). The code shipped is plAIn Python scripts 运行 locally; there are no 下载s from remote URLs or package 安装s. Risk from 安装ation is low.
凭证需求
The registry metadata declares no required env vars, and no 凭证s are 请求ed. The scripts do honor an optional OpenClaw_备份_DIR 环境 variable (used to override the 备份 directory) even though it's not 列出ed in the metadata — this is benign but a small mismatch between docs/metadata and code. No other secrets are 访问ed.
持久化与权限
The 技能 can 添加 a dAIly cron job via 'OpenClaw cron 添加' to schedule 备份s — this is expected for a 备份 技能. The 技能 is not 配置d as always:true and does not modify other 技能s or 系统-wide 代理 设置tings beyond 添加ing an OpenClaw cron entry.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install openclawbackup
镜像加速npx clawhub@latest install openclawbackup --registry https://cn.longxiaskill.com

技能文档

OpenClaw-备份

See CHANGE记录.md for version 历史.

Automated dAIly 备份 技能 using OpenClaw's built-in 备份 创建 command.

备份 Destination

~/OpenClaw_备份s/ — timestamped .tar.gz 归档s.

Quick Commands # 运行 备份 now python3 scripts/备份.py

# 运行 备份 with verification python3 scripts/备份.py --验证

# 验证 latest 备份 python3 scripts/健康_检查.py

# 清理up old 备份s (dry-运行, then --执行 to 删除) python3 scripts/清理up_old_备份s.py --days 90 python3 scripts/清理up_old_备份s.py --days 90 --执行

# 设置up dAIly cron at 4 AM python3 scripts/设置up_cron.py

First-Time 设置up on New Machine

Test 备份:

cd 技能s/OpenClaw-备份 python3 scripts/备份.py --验证

验证 健康:

python3 scripts/健康_检查.py

设置up cron (导入ant — do this!):

python3 scripts/设置up_cron.py

This schedules dAIly 4 AM HKT 备份 via OpenClaw cron. Without this, 备份s only 运行 when you manually trigger them.

验证 cron:

OpenClaw cron 列出

Cron 设置up (Already 配置d)

The dAIly cron job 运行s automatically at 04:00 HKT. Trigger message: 备份 OpenClaw 会话: isolated

Manage cron:

# 列出 OpenClaw cron 列出

# 移除 OpenClaw cron 移除 OpenClaw-备份:dAIly

# Re-添加 python3 scripts/设置up_cron.py

What 获取s Backed Up Config files (~/.OpenClaw/*.json) 凭证s (加密ed by OpenClaw) 会话 历史 Workspace files 技能s and 设置tings Retention

备份s are kept indefinitely by default. 运行 清理up periodically:

# Preview old 备份s python3 scripts/清理up_old_备份s.py --days 90

# 删除 if looks good python3 scripts/清理up_old_备份s.py --days 90 --执行

Suggested schedule: quarterly.

Portable — Copy to New Machine

Copy the entire OpenClaw-备份/ 技能 folder to a new machine, then:

cd 技能s/OpenClaw-备份 python3 scripts/备份.py --验证 # test python3 scripts/设置up_cron.py # schedule dAIly python3 scripts/健康_检查.py # 验证

No extra dependencies — uses OpenClaw's built-in 备份 创建.

数据来源ClawHub ↗ · 中文优化:龙虾技能库