← Back to Skills Marketplace
103
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install openclaw-backup-rollback
Description
自动备份和回滚OpenClaw配置,每15分钟备份一次,支持手动备份、版本选择恢复,保留最近96个备份。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-backup-rollback - After installation, invoke the skill by name or use
/openclaw-backup-rollback - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is OpenClaw备份回滚系统?
自动备份和回滚OpenClaw配置,每15分钟备份一次,支持手动备份、版本选择恢复,保留最近96个备份。 It is an AI Agent Skill for Claude Code / OpenClaw, with 103 downloads so far.
How do I install OpenClaw备份回滚系统?
Run "/install openclaw-backup-rollback" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenClaw备份回滚系统 free?
Yes, OpenClaw备份回滚系统 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenClaw备份回滚系统 support?
OpenClaw备份回滚系统 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenClaw备份回滚系统?
It is built and maintained by acrdik (@wuyuyang2); the current version is v1.1.0.
More Skills