Agent skill
backup
Automated backup strategies for workspace, credentials, and critical data.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/backup
Metadata
Additional technical details for this skill
- openclaw
-
{ "emoji": "\ud83d\udcbe", "category": "infrastructure" }
SKILL.md
Backup
Automated backup strategies for workspace, credentials, and critical data.
What to Backup
| Priority | Item | Location | Frequency |
|---|---|---|---|
| 🔴 Critical | Credentials | ~/.credentials/ |
Daily |
| 🔴 Critical | MEMORY.md | Workspace root | Daily |
| 🟡 High | Skill configs | skills/*/config* |
Weekly |
| 🟡 High | Git repos | Various | On commit |
| 🟢 Medium | Daily memories | memory/ |
Weekly |
Backup Strategies
1. Git-Based (Primary)
# Daily backup script
cd ~/.openclaw/workspace
git add -A
git commit -m "backup: $(date +%Y-%m-%d-%H:%M)"
git push origin main
Pros: Version history, free, easy restore Cons: Doesn't handle large binaries well
2. Cloud Sync (Secondary)
# Rsync to cloud storage
rsync -avz ~/.openclaw/workspace/ gdrive:Backups/openclaw/
3. Local Archive
# Compressed archive
tar -czf backup-$(date +%Y%m%d).tar.gz ~/.openclaw/workspace/
Automated Backup Job
{
"name": "daily-workspace-backup",
"schedule": {"kind": "cron", "expr": "0 2 * * *"},
"payload": {
"kind": "agentTurn",
"message": "Backup workspace: commit all changes, push to remote. Report status."
},
"sessionTarget": "isolated"
}
Credential Backup
# Separate encrypted backup
tar -czf - ~/.credentials/ | gpg -c > credentials-backup-$(date +%Y%m%d).tar.gz.gpg
Restore Procedure
- From Git:
git cloneorgit checkout - From Archive:
tar -xzf backup-xxx.tar.gz - Credentials: Decrypt GPG backup, extract to
~/.credentials/
Backup Verification
Always test backups:
# Verify git backup
git log --oneline -5
# Verify archive
tar -tzf backup-xxx.tar.gz | head
# Verify credential backup
gpg -d credentials-backup-xxx.tar.gz.gpg | tar -tz | head
Best Practices
- 3-2-1 Rule: 3 copies, 2 media types, 1 offsite
- Encrypt credentials — Never plaintext
- Test restores — Monthly verification
- Monitor failures — Alert on backup errors
- Document locations — Know where everything is
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?