Automated backup management for OpenClaw configurations and critical files.
自动化备份管理系统,保护OpenClaw配置和关键文件。
English:
中文:
English:
Never create backups automatically without user confirmation. Always explain what will be backed up and where.
中文:
未经用户确认,不要自动创建备份。始终解释将备份什么内容以及备份到何处。
English:
Respect configured retention periods: daily (7 days), weekly (4 weeks), monthly (12 months). Never delete backups outside retention windows without confirmation.
中文:
尊重配置的保留周期:每日(7天)、每周(4周)、每月(12个月)。未经确认,不得删除保留期之外的备份。
English:
After creating a backup, verify the file exists and is readable. Report any backup failures immediately.
中文:
创建备份后,验证文件存在且可读。立即报告任何备份失败。
English:
Record all backup operations in memory/backup-log.md with timestamps, file counts, and sizes.
中文:
将所有备份操作记录在memory/backup-log.md中,包括时间戳、文件数量和大小。
English:
When restoring from backup, create a backup of current state first. Never overwrite without a safety copy.
中文:
从备份恢复时,先创建当前状态的备份。没有安全副本之前不要覆盖。
| Topic / 主题 | File / 文件 |
|---|---|
| --------------- | ------------- |
| Backup strategies / 备份策略 | backup-strategies.md |
| Script reference / 脚本参考 | backup-scripts.md |
| Recovery guide / 恢复指南 | recovery-guide.md |
| Memory template / 记忆模板 | memory-template.md |
If OpenClaw is completely broken and cannot start / 如果OpenClaw完全损坏无法启动:
# List backups / 列出备份
ls -lht ~/.openclaw/backups/critical/
# Restore (replace with your backup file) / 恢复(替换为你的备份文件)
bash ~/.openclaw/workspace/skills/backup-manager/restore.sh ~/.openclaw/backups/critical/YOUR_BACKUP.tar.gz
English:
~/OPENCLAW_EMERGENCY_RECOVERY.md~/.openclaw/backups/README.md中文:
~/OPENCLAW_EMERGENCY_RECOVERY.md~/.openclaw/backups/README.mdEnglish:
restore.sh script works WITHOUT OpenClaw runningcritical/ backups first (highest priority)中文:
restore.sh 脚本可以在OpenClau未运行的情况下工作critical/ 备份恢复(最高优先级)English:
Backups are stored in ~/.openclaw/backups/ with a hybrid time-based directory structure:
中文:
备份存储在 ~/.openclaw/backups/ 目录,采用基于时间的混合目录结构:
~/.openclaw/backups/
├── daily/ # Daily backups (keep 7 days) / 每日备份(保留7天)
│ ├── 2026/
│ │ ├── 03/
│ │ │ ├── 08/
│ │ │ │ ├── config_20260308_020000.tar.gz # Config backup / 配置备份
│ │ │ │ └── critical_20260308_103015.tar.gz # Pre-change backup / 修改前备份
│ │ │ └── 09/
│ │ └── 04/
│ └── latest -> 2026/03/08 # Latest backup symlink / 最新备份软链接
├── weekly/ # Weekly backups (keep 4 weeks) / 每周备份(保留4周)
│ ├── 2026/
│ │ ├── w10/
│ │ │ └── full_20260308_030000.tar.gz # Full backup / 完整备份
│ │ └── w11/
│ └── latest -> 2026/w10/
├── weekly/skills/ # Weekly custom skills backup (keep 4 weeks) / 自定义技能每周备份
│ ├── skills-custom_2026w10_20260308_033000.tar.gz # Skills backup / 技能备份
│ └── latest -> skills-custom_2026w10_20260308_033000.tar.gz
├── monthly/ # Monthly backups (keep 12 months) / 每月备份(保留12个月)
│ ├── 2026/
│ │ ├── 03/
│ │ │ └── full_20260301_040000.tar.gz # Full backup / 完整备份
│ │ └── 04/
│ └── latest -> 2026/03/
└── critical/ # Pre-major-change backups (manual cleanup) / 重大修改前备份(手动清理)
├── before-glm-config-20260308_102514.tar.gz
└── before-plugin-config-20260308_103015.tar.gz
English:
Memory tracking uses memory/backup-log.md.
中文:
记忆追踪使用 memory/backup-log.md。
English:
None. This skill operates entirely locally.
中文:
无。此技能完全在本地运行。
English:
skill-vetter — security review before installationopenclaw-security-scanner — security assessmenthealthcheck — system hardening中文:
skill-vetter — 安装前的安全审查openclaw-security-scanner — 安全评估healthcheck — 系统加固English:
Report issues or suggest improvements via memory/backup-log.md.
中文:
通过 memory/backup-log.md 报告问题或提出改进建议。
English:
中文:
English:
中文:
English:
中文:
Created by / 创建者: xichen (虾维斯)
Last Updated / 最后更新: 2026-04-06
共 1 个版本