name: backup-drift

description: Automated backups and configuration drift detection. Git commits, cloud sync, and best-practice alignment checks.


Backup & Drift Checker

Automated backups and configuration drift detection for agent workspaces.

When to Use ✅

When NOT to Use ❌

Backup Strategy

What Gets Backed Up

| 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 |

Git Auto-Commit


# Daily at midnight
cd ~/clawd
git add -A
git commit -m "Auto-backup $(date +%Y-%m-%d)" --allow-empty
git push origin main

Cloud Sync

Sensitive files → encrypted → cloud drive:

Drift Detection

What We Check

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


# 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`

Best Practice Checks

Compare against documented standards:

Commands


# 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

Schedule

Alerts

Notify on: