Install
openclaw skills install openclaw-backup-optimizedClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
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 install openclaw-backup-optimizedUse this skill to install, configure, and run the optimized OpenClaw backup workflow:
~/.openclawscripts/backup.js (cross-platform)references/CONFIG.mdcp scripts/backup.js ~/.openclaw/workspace/tools/openclaw-backup.js
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"
node ~/.openclaw/workspace/tools/openclaw-backup.js
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.