Openclaw Backup
/install agent-backup
🔐 Agent Backup
One command to backup. One command to restore. Everything encrypted, verified, and rollback-safe.
Quick Start
# Backup (operational only — safe for cloud)
bash {baseDir}/scripts/backup.sh
# Backup with encrypted secrets
bash {baseDir}/scripts/backup.sh --include-secrets --age-recipient age1...
# Verify
bash {baseDir}/scripts/verify.sh --manifest \x3Cpath>/manifest.json --archive \x3Cpath>/backup.tar.gz
# Restore (dry-run first)
bash {baseDir}/scripts/restore.sh --manifest \x3Cpath>/manifest.json --archive \x3Cpath>/backup.tar.gz --dry-run
# Restore for real
bash {baseDir}/scripts/restore.sh --manifest \x3Cpath>/manifest.json --archive \x3Cpath>/backup.tar.gz
# Push to GitHub (operational only, secrets blocked if unencrypted)
bash {baseDir}/scripts/push-to-github.sh --manifest \x3Cpath>/manifest.json --archive \x3Cpath>/backup.tar.gz
# Schedule daily 4 AM backups
bash {baseDir}/scripts/schedule.sh
Two-Tier Archive Model
| Tier | Contents | Cloud safe? | Encrypted? |
|---|---|---|---|
| Operational | Workspace, redacted config, crons | ✅ Yes | No (no secrets) |
| Secrets | .env, agent auth profiles | ❌ Local only | ✅ Required (age) |
Default: operational only. Secrets are opt-in via --include-secrets.
Restore Safety
Restore uses a 7-step safety flow:
- Verify manifest checksums
- Extract to staging (not live directory)
- Verify critical files in staging
- Backup current state to
.pre-restore-backup-TIMESTAMP - Atomic swap
- Health check (
pre-restart-check.shif available) - Auto-rollback on failure
Flags: --dry-run (preview only), --force (non-interactive)
Prerequisites
agefor secrets encryption:brew install ageorapt install ageghfor GitHub push (optional):brew install gh
Configuration
Set encryption via environment or flags:
# Environment
export AGE_RECIPIENT="age1your_public_key"
export AGE_PASSPHRASE_FILE="/path/to/passphrase"
# Or flags
bash {baseDir}/scripts/backup.sh --include-secrets --age-recipient age1...
Workflows
bash {baseDir}/scripts/weekly-verify.sh— verify all backup sets, prune by daily/weekly/monthly retention, and clean orphaned files.bash {baseDir}/scripts/monthly-drill.sh— run a dry-run restore against the newest backup set and report pass/fail.bash {baseDir}/scripts/pre-change-snapshot.sh— create a fast operational-only snapshot before config edits or gateway restarts..github/workflows/verify-backup.yml— GitHub Actions CI that builds a fixture backup, validates manifest checksums, extracts the archive, and checks critical files.
Reference Files
{baseDir}/references/restore-guide.md— full disaster recovery walkthrough{baseDir}/references/what-to-backup.md— every file explained{baseDir}/references/retention-policy.md— how long to keep backups
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-backup - After installation, invoke the skill by name or use
/agent-backup - Provide required inputs per the skill's parameter spec and get structured output
What is Openclaw Backup?
Encrypted backup and restore for OpenClaw agents. Two-tier archives: operational data safe for cloud storage, secrets encrypted with age for local recovery.... It is an AI Agent Skill for Claude Code / OpenClaw, with 234 downloads so far.
How do I install Openclaw Backup?
Run "/install agent-backup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Openclaw Backup free?
Yes, Openclaw Backup is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Openclaw Backup support?
Openclaw Backup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Openclaw Backup?
It is built and maintained by Don Zurbrick (@zurbrick); the current version is v1.1.0.