← 返回 Skills 市场
wuyuyang2

OpenClaw备份回滚系统

作者 acrdik · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
103
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-backup-rollback
功能描述
自动备份和回滚OpenClaw配置,每15分钟备份一次,支持手动备份、版本选择恢复,保留最近96个备份。
安全使用建议
Before installing, check the following: 1) The plugin metadata references scripts/backup_cron.py but that file is missing — ask the author or fix the hook to point to an existing script. 2) Replace the hard-coded path (/home/acrdik) in scripts/backup_openclaw.sh with a portable HOME/Path.home() usage so backups go to the correct user's ~/.openclaw. 3) Investigate the hard-coded config name 'memory/2026-04-03.md' in rollback.py (likely leftover) and adjust the diff list to the files you actually care about. 4) Test the backup and restore process on a non-production instance to confirm exclusions, retention (96 backups), and that restores do what you expect. 5) Verify the set of systemd user services stopped/started by the scripts exist on your system and that you are comfortable granting the skill the ability to stop/start them. 6) Inspect backup contents to ensure no sensitive secrets are being archived unintentionally. 7) Because the source/homepage is unknown, prefer to only install after the above fixes or obtain a vetted copy from a trusted source. If you cannot validate or fix these issues, do not enable autonomous invocation in a production agent.
功能分析
Type: OpenClaw Skill Name: openclaw-backup-rollback Version: 1.1.0 The skill bundle implements a backup and rollback system but contains a hardcoded absolute path (/home/acrdik/) in 'scripts/backup_openclaw.sh', which will cause failures or unintended behavior on most systems. Furthermore, 'openclaw.plugin.json' references a missing file ('scripts/backup_cron.py') for its automated cron hook, leaving the background execution logic unverifiable. While the provided Python scripts ('scripts/backup_rollb_plugin.py' and 'scripts/rollback.py') use safer path handling and standard utilities like tar and systemctl, the inconsistencies and missing components are high-risk indicators.
能力评估
Purpose & Capability
The stated purpose (automatic backups every 15 minutes, manual backup/restore) aligns with the included scripts: they tar.gz ~/.openclaw, keep recent backups, and stop/start services for restore. However, backup_openclaw.sh hardcodes /home/acrdik rather than using ~ or Path.home(), which makes the script user-specific and inconsistent with the SKILL.md and other Python scripts. The plugin metadata (openclaw.plugin.json) also references a cron script (scripts/backup_cron.py) that is not present.
Instruction Scope
Runtime instructions and scripts perform expected actions (tar, exclude patterns, create pre-rollback backup, stop/start services). Concerns: (1) rollback.py's diff function checks a specific filename 'memory/2026-04-03.md' — a hard-coded date/file that is likely incorrect or leftover, (2) plugin.json declares a cron hook file that doesn't exist, (3) backup_openclaw.sh uses absolute /home/acrdik paths which may write or fail on other systems, (4) scripts will archive user files under ~/.openclaw (which could contain secrets or tokens) and will overwrite files on restore — this is expected for a restore tool but warrants caution and testing. There are no network endpoints or credential exfiltration in the code.
Install Mechanism
No install spec — instruction-only plus shipped scripts. That lowers install-time risk (nothing downloaded from third-party URLs). The code will be written to disk when the user installs the skill (normal for packaged skills).
Credentials
The skill declares no required environment variables or credentials, and the scripts do not perform network calls or ask for secrets. This is proportionate. However, the hard-coded absolute path (/home/acrdik) is user-specific and may cause the script to operate on the wrong account or fail; review and replace with a portable HOME-based path before use.
Persistence & Privilege
always is false (good). The scripts stop/start user services via 'systemctl --user' which requires the user to have those systemd user services — stopping services is expected for a restore but is a privileged operation relative to service availability. Autonomous invocation (disable-model-invocation: false) is allowed by default; combined with the other inconsistencies this increases the need to review and test the skill before granting it runtime autonomy.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-backup-rollback
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-backup-rollback 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Added diff preview before rollback, allowing users to view changes between backups and current configuration. - Introduced option to cancel rollback operation after diff review. - Updated documentation to reflect new features.
v1.0.0
OpenClaw Backup & Rollback System v1.0.0 - Adds automated backups every 15 minutes for the entire .openclaw directory. - Provides manual backup and rollback commands for instant backup or version restoration. - Stores up to 96 compressed backups (~24 hours), each about 11MB. - Excludes common directories (node_modules, .cache, backups, logs, media) from backup. - Seamless integration: no configuration required—works automatically after installation.
元数据
Slug openclaw-backup-rollback
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

OpenClaw备份回滚系统 是什么?

自动备份和回滚OpenClaw配置,每15分钟备份一次,支持手动备份、版本选择恢复,保留最近96个备份。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 103 次。

如何安装 OpenClaw备份回滚系统?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-backup-rollback」即可一键安装,无需额外配置。

OpenClaw备份回滚系统 是免费的吗?

是的,OpenClaw备份回滚系统 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw备份回滚系统 支持哪些平台?

OpenClaw备份回滚系统 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw备份回滚系统?

由 acrdik(@wuyuyang2)开发并维护,当前版本 v1.1.0。

💬 留言讨论