Install
openclaw skills install backupclawBackup and restore OpenClaw configuration files. Use when the user wants to backup ~/.openclaw/ configuration (excluding workspace) to a date-stamped directo...
openclaw skills install backupclawFull backup and restore capability for OpenClaw configuration files. Backups are stored in date-stamped directories (YYYY-MM-DD format). Only performs backup when configuration has actually changed.
Configuration file:
~/.openclaw/backup.json{
"backup_location": "/path/to/backup/directory"
}
Get backup directory:
~/.openclaw/backup.json exists~/.openclaw/backup.json with the provided pathChange backup directory (changedir command):
When user runs backupclaw changedir <new_path>:
~/.openclaw/backup.json with new pathExample changedir usage:
Backup directory setup:
Backup process:
~/.openclaw/ to $backup_claw_dir/YYYY-MM-DD/, excluding workspace/~/.openclaw/ using diff~/.openclaw/ to new directory, excluding workspace/Changelog format:
$backup_claw_dir/changelog.md## 2026-03-12 14:30:00
- openclaw.json (modified)
- extensions/feishu/skills/feishu-doc/SKILL.md (added)
Exclusion rules:
workspace/ directory from backupRestore process:
$backup_claw_dir/YYYY-MM-DD/~/.openclaw/workspace/ from restorationTypical user requests that trigger this skill:
Tools to use:
rsync or cp -r for copying filesdiff for comparing file contentsfind with sort and tail to find latest backupdate +%Y-%m-%dread and write tools for managing ~/.openclaw/backup.jsonBackup directory management:
~/.openclaw/backup.json first before asking userwrite tool to create/update backup.jsonchangedir command handling:
backupclaw changedir <path> or equivalent Chinese phrasingBackup directory structure:
$backup_claw_dir/
├── 2026-03-12/
│ ├── openclaw.json
│ ├── agents/
│ ├── extensions/
│ └── ...
├── 2026-03-13/
│ └── ...
└── changelog.md
Error handling: