Backup Restore
系统备份恢复 - 全量备份、增量备份、自动备份计划、一键恢复、备份验证。保护配置、数据、技能和工作区。
yuhui435
@yuhui435
Install
$ openclaw skills install @yuhui435/backup-restoreBackup & Restore - 系统备份恢复技能
核心功能
- ✅ 全量备份
- ✅ 增量备份
- ✅ 自动备份计划
- ✅ 一键恢复
- ✅ 备份验证
备份范围
| 类型 | 内容 | 路径 |
|---|---|---|
| 配置 | openclaw.json, cron/jobs.json, crons.json(兼容) 等 | ~/.openclaw/ |
| 数据 | memory/, workspace/ | ~/.openclaw/workspace/ |
| 技能 | skills/ | ~/.openclaw/workspace/skills/ |
| Agent | 所有 Agent 工作区 | ~/.openclaw/workspace-*/ |
使用方法
全量备份
python backup-restore.py full
增量备份
python backup-restore.py incremental
恢复备份
python backup-restore.py restore --backup <backup_file>
验证备份
python backup-restore.py verify --backup <backup_file>
自动备份计划
推荐配置(添加到 Cron):
{
"id": "daily-backup",
"name": "每日备份",
"schedule": "0 2 * * *",
"command": "python backup-restore.py incremental",
"agent": "main"
}
备份保留策略
- 每日备份:保留 7 天
- 每周备份:保留 4 周
- 每月备份:保留 12 个月
注意事项
- 备份前停止 Cron 调度器
- 验证备份完整性
- 定期测试恢复流程
- 备份到外部存储(可选)
Top skills in this category
self-improving agent
@pskoettCaptures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude rea
Skill Vetter
@spclaudehomeSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
Proactive Agent
@halthelobsterTransform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
Agent Browser
@matrixyHeadless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection