openclaw-backup
Installation
SKILL.md
Every step ends on a gate. A gate is a check that produces evidence. A gate you did not run is a gate that failed. The failure this skill is built against is silent: an archive that writes cleanly, verifies cleanly, and turns out to be missing the thing you needed.
Input
- Nothing. Back up the OpenClaw install on the current machine.
- A host. Pass
user@hostand prefix every command with your SSH invocation. The steps are otherwise identical.
Detect what you can. Ask only for the backup destination, which defaults to ~/backups/<date>-preflight, and whether to pull a copy off-box.
Step 0: Preflight
STATE_DIR="${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"
[ -d "$STATE_DIR" ] || { echo "FAIL: no OpenClaw state dir at $STATE_DIR"; exit 1; }