Skip to content

v2.8.0: Backup & Disaster Recovery

Choose a tag to compare

@ZackO2o ZackO2o released this 09 Apr 19:46
· 4 commits to main since this release

New Features

  • memory-backup.sh: Auto-backup workspace to GitHub private repo. Runs every 6h via cron (integrated into memory-cron.sh Step 6). Only pushes if changes exist. Backs up: MEMORY.md, daily logs, SOUL.md, USER.md, AGENTS.md, openclaw.json, crontab.
  • memory-restore.sh: One-command disaster recovery after OpenClaw reinstall. Clones backup, restores openclaw.json, restores crontab, rebuilds search index. Interactive safety prompt if workspace already exists.

Setup

# One-time: init git in workspace and push
cd ~/.openclaw/workspace
git init && git branch -M main
git remote add origin https://<token>@github.com/<user>/openclaw-workspace.git
bash skills/memory-engine/scripts/memory-backup.sh

Restore

bash memory-restore.sh https://<token>@github.com/<user>/openclaw-workspace.git