Install
openclaw skills install @jlacroix82/backup-syncIntelligent file backup with compression and verification. Backup, sync, verify integrity, dedup, and restore. Manifest tracking. Zero external dependencies.
openclaw skills install @jlacroix82/backup-syncStop losing config changes to disk failures. Start backing up intelligently.
Config files, skills, memory — they're all on one disk with no backup strategy. When something breaks, everything is gone. Manual backups are error-prone and inconsistent.
Smart Backup fixes this with automated backup, sync, verification, and deduplication.
node skills/smart-backup/smart-backup.js --backup /home/jarvis/.openclaw /mnt/backup
node skills/smart-backup/smart-backup.js --backup --dry-run /home/jarvis/.openclaw /mnt/backup
node skills/smart-backup/smart-backup.js --sync /home/jarvis/.openclaw /mnt/backup/sync
Syncs only changed files, deletes extras in destination.
node skills/smart-backup/smart-backup.js --sync --dry-run /home/jarvis/.openclaw /mnt/backup/sync
node skills/smart-backup/smart-backup.js --verify /path/to/backup-xxx
Checks SHA-256 hashes of all files against manifest.
node skills/smart-backup/smart-backup.js --dedup /home/jarvis
Groups files by content hash, shows sizes and paths.
node skills/smart-backup/smart-backup.js --list
node skills/smart-backup/smart-backup.js --restore /path/to/backup-xxx /restore/path
node skills/smart-backup/smart-backup.js --status
# First backup (full)
node skills/smart-backup/smart-backup.js --backup /source /dest
# Subsequent backups (only changed files)
node skills/smart-backup/smart-backup.js --backup /source /dest --incr
Hash-based change detection — skips unchanged files for 10-100x speedup.
.git, node_modules, .cache, .npm by default--incr flag enables hash-based change detection--from-manifest <id> to base diff on specific manifestBackups stored in: backups/smart-backups/
Manifest stored in: backups/smart-backups/manifest.json
Override data directory:
--dir /path/to/data
During heartbeats and maintenance:
--backup your workspace to a safe location--verify the latest backup--dedup to find and clean duplicates--list to check backup health--dry-run before sync/backup on important dirsAdd to your HEARTBEAT.md:
### 💾 Smart Backup
- Weekly: `node skills/smart-backup/smart-backup.js --backup /home/jarvis/.openclaw /mnt/backup`
- Verify: `node skills/smart-backup/smart-backup.js --verify <latest-backup>`
- Dedup: `node skills/smart-backup/smart-backup.js --dedup /home/jarvis`
| Approach | Integrity Check | Dedup | Manifest | Automation |
|---|---|---|---|---|
cp -r | ❌ | ❌ | ❌ | Manual |
rsync | ⚠️ | ❌ | ❌ | Auto |
| Smart Backup | ✅ | ✅ | ✅ | Auto |
Smart Backup gives you integrity verification + dedup + manifest tracking in one tool.