详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
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 备份 创建.