OpenClaw has no built-in backup command. You need to handle it yourself. Here's what to protect:
Your agent memory database lives at ~/.openclaw/agents/<agentId>/memory.sqlite. This holds your vector index and full-text search data. Back it up before any major change.
Your config lives at ~/.openclaw/openclaw.json. Back it up before editing or upgrading.
Your credentials live at ~/.openclaw/credentials/. Back these up after any auth change.
Use tar with compression to bundle everything into a single archive. One thing to remember: your backups contain API keys. Encrypt any backup you store off-machine. On your local machine, set chmod 600 on your config and credential files so only your user can read them.