Install
openclaw skills install bud-backup-toolBackup and restore OpenClaw configuration, skills, memory, and workspace files. Essential for protecting your agent setup and enabling recovery after crashes or new installations.
openclaw skills install bud-backup-toolBackup and restore your OpenClaw setup. Protect your skills, memory, identity, credentials, and workspace. One command to backup everything, easy restore when needed.
# Check what will be backed up
python3 ~/.openclaw/backup-tool/backup_tool.py status
# Create backup
python3 ~/.openclaw/backup-tool/backup_tool.py backup
# Push backup to GitHub (requires repo setup)
python3 ~/.openclaw/backup-tool/backup_tool.py backup --push
| Item | Path | Description |
|---|---|---|
| skills | ~/.openclaw/skills/ | All installed skills |
| workspace | ~/.openclaw/workspace/ | Memory, identity, config |
| memory | ~/.openclaw/workspace/memory/ | Daily memory files |
| identity | ~/.openclaw/identity/ | Agent identity |
| credentials | ~/.openclaw/credentials/ | API keys, tokens |
| vpn_mesh | ~/.openclaw/vpn-mesh/ | VPN mesh config |
| health_monitor | ~/.openclaw/health-monitor/ | Health monitor config |
status — Show backup statusShows what files would be backed up, existing backups, and total backup size.
backup — Create backupCreates a timestamped .tar.gz archive in ~/.openclaw/backups/.
Add --push to automatically push to GitHub.
list — List backupsShows all available local backups with timestamps and sizes.
restore — Restore from backupRestore specific items from a backup tarball:
python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_20240604.tar.gz
push — Push to GitHubPush the latest backup to a GitHub repository for off-site storage.
For cloud backups, create a GitHub repo called openclaw-backup:
openclaw-backupsudo-toolThe backup tool will clone/push to this repo automatically.
# After fresh OpenClaw install
python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_latest.tar.gz
# List backups
python3 ~/.openclaw/backup-tool/backup_tool.py list
# Restore everything
python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_20240604.tar.gz
# On new machine, install OpenClaw
# Then restore from GitHub
python3 ~/.openclaw/backup-tool/backup_tool.py push # or pull from GitHub
Add to cron for automatic daily backups:
# Daily backup at 3am
0 3 * * * python3 ~/.openclaw/backup-tool/backup_tool.py backup --push >> ~/.openclaw/backup-tool/backup.log 2>&1
~/.openclaw/backup-tool/
├── backup_tool.py # Main script
├── backup.log # Backup log
└── config.json # Configuration (optional)
~/.openclaw/backups/
└── openclaw_backup_YYYYMMDD_HHMM.tar.gz
chmod 755 restrictionssudo-tool — for secure file operationstar, gzip — for archive creationgit — for GitHub push (optional)