name: backup-drift
description: Automated backups and configuration drift detection. Git commits, cloud sync, and best-practice alignment checks.
Automated backups and configuration drift detection for agent workspaces.
| Category | Location | Method | Frequency |
|----------|----------|--------|-----------|
| Workspaces | `~/clawd*` | Git commit + push | Daily |
| Config | `~/.openclaw/` | Encrypted archive | Daily |
| Memory | `~/.openclaw/memory/` | Cloud sync | Hourly |
| Sessions | `~/.openclaw/agents/*/sessions/` | Local archive | Daily |
# Daily at midnight
cd ~/clawd
git add -A
git commit -m "Auto-backup $(date +%Y-%m-%d)" --allow-empty
git push origin main
Sensitive files → encrypted → cloud drive:
1. AGENTS.md — Compare against team template
2. SOUL.md — Check for required sections
3. Config — Validate against schema
4. Skills — Check for updates from ClawHub
5. OpenClaw version — Compare to latest stable
# Drift Report — [Date]
## Version Status
- OpenClaw: 2026.2.9 (current: 2026.2.9) ✅
- Skills: 3 updates available
## Config Drift
- ✅ AGENTS.md — matches template
- ⚠️ SOUL.md — missing "Boundaries" section
- ✅ TOOLS.md — up to date
## Skill Updates Available
- summarize: 1.2.0 → 1.2.3 (bug fixes)
- notion: 2.0.0 → 2.1.0 (new features)
## Recommendations
1. Add "Boundaries" section to SOUL.md
2. Update summarize skill: `openclaw skills update summarize`
Compare against documented standards:
# Run full backup
./skills/backup-drift/scripts/backup.sh
# Check drift only
./skills/backup-drift/scripts/drift-check.sh
# Auto-fix simple drift
./skills/backup-drift/scripts/drift-check.sh --fix
# Weekly maintenance (backup + drift + cleanup)
./skills/backup-drift/scripts/weekly-maintenance.sh
Notify on: