6.4k★by cccarv82
openclaw-backup-optimized – OpenClaw Skill
openclaw-backup-optimized is an OpenClaw Skills integration for communication workflows. Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos.
Skill Snapshot
| name | openclaw-backup-optimized |
| description | Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos. OpenClaw Skills integration. |
| owner | cccarv82 |
| repository | cccarv82/openclaw-backup-optimized |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @cccarv82/openclaw-backup-optimized |
| last updated | Feb 7, 2026 |
Maintainer

name: openclaw-backup-optimized description: "Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos."
OpenClaw Backup (Optimized)
What this skill does
Use this skill to install, configure, and run the optimized OpenClaw backup workflow:
- Full snapshot of
~/.openclaw - Workspace archive split into ~90MB parts + SHA256
- Rich Discord notification (summary + restore steps)
- Retention of last N reports
Files
- Script:
scripts/backup.js(cross-platform) - Reference config:
references/CONFIG.md
Install / Setup
- Copy the script into your tools folder:
cp scripts/backup.js ~/.openclaw/workspace/tools/openclaw-backup.js
- Configure env vars (see references/CONFIG.md):
macOS/Linux (bash/zsh):
export OPENCLAW_HOME="$HOME/.openclaw"
export OPENCLAW_BACKUP_DIR="$HOME/.openclaw-backup"
export BACKUP_REPO_URL="https://github.com/your/repo.git"
export BACKUP_CHANNEL_ID="1234567890"
export BACKUP_TZ="America/Sao_Paulo"
export BACKUP_MAX_HISTORY=7
Windows (PowerShell):
$env:OPENCLAW_HOME="$env:USERPROFILE\.openclaw"
$env:OPENCLAW_BACKUP_DIR="$env:USERPROFILE\.openclaw-backup"
$env:BACKUP_REPO_URL="https://github.com/your/repo.git"
$env:BACKUP_CHANNEL_ID="1234567890"
$env:BACKUP_TZ="America/Sao_Paulo"
$env:BACKUP_MAX_HISTORY="7"
- Run once:
node ~/.openclaw/workspace/tools/openclaw-backup.js
- Create cron (OpenClaw cron runs in the gateway environment):
openclaw cron add --name "openclaw-backup-daily" \
--cron "0 5,10,15,20 * * *" --tz "America/Sao_Paulo" \
--exec "node ~/.openclaw/workspace/tools/openclaw-backup.js"
Restore
Use the restore instructions printed in the backup notification.
Notes
- Excludes noisy session lock/deleted files for smaller diffs.
- Requires
gitandnode(>=18). - Uses
openclaw message sendfor notifications (no webhook). scripts/openclaw-backup.shis legacy (Linux/macOS) and will be removed; usebackup.js.
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
FAQ
How do I install openclaw-backup-optimized?
Run openclaw add @cccarv82/openclaw-backup-optimized in your terminal. This installs openclaw-backup-optimized into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/cccarv82/openclaw-backup-optimized. Review commits and README documentation before installing.
