openclaw-backup-optimizedOptimized 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.
Install via ClawdBot CLI:
clawdbot install cccarv82/openclaw-backup-optimizedUse this skill to install, configure, and run the optimized OpenClaw backup workflow:
~/.openclawscripts/backup.js (cross-platform)references/CONFIG.md1) Copy the script into your tools folder:
cp scripts/backup.js ~/.openclaw/workspace/tools/openclaw-backup.js
2) 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"
3) Run once:
node ~/.openclaw/workspace/tools/openclaw-backup.js
4) 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"
Use the restore instructions printed in the backup notification.
git and node (>=18).openclaw message send for notifications (no webhook).scripts/openclaw-backup.sh is legacy (Linux/macOS) and will be removed; use backup.js.Generated Mar 1, 2026
A team developing AI agents uses this skill to automate daily backups of their OpenClaw configurations and workspaces. It ensures data integrity with SHA256 checksums and notifies the team via Discord, enabling quick recovery from accidental deletions or corruption during development cycles.
A freelance AI consultant employs this skill to back up client-specific OpenClaw setups after project completion. The split archives and change summaries facilitate efficient storage and retrieval, allowing for easy restoration when revisiting projects or handing over work to clients.
A university lab uses this skill to schedule automated backups of OpenClaw environments used in AI courses. It helps preserve student work, maintain consistent setups across semesters, and provide clear restore instructions for teaching assistants managing multiple instances.
A tech startup integrates this skill into their DevOps pipeline to back up OpenClaw states before deploying updates. The cron job automation and Discord notifications ensure reliability, minimizing downtime and data loss during iterative development and testing phases.
Offer this backup skill as part of a subscription-based SaaS platform for AI developers. Revenue is generated through monthly fees, providing automated backups, notifications, and support, enhancing the value of the core AI toolset for teams and enterprises.
Provide consulting services to customize and implement this backup skill for specific client needs, such as integrating with existing systems or scaling for large deployments. Revenue comes from one-time setup fees and ongoing maintenance contracts.
Distribute the skill as open source to build a community, while offering premium features like advanced analytics, extended retention, or priority support. Revenue is generated from upsells and donations, leveraging the free version to attract users.
š¬ Integration Tip
Ensure Node.js and Git are installed, and set environment variables correctly for your OS before running the script to avoid common setup errors.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
Perform advanced filesystem tasks including listing, recursive searching by name or content, batch copying/moving/deleting files, and analyzing directory siz...
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.
Extract text from PDF files for LLM processing
The directory for AI agent services. Discover tools, platforms, and infrastructure built for agents.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot