Backup, restore, and migrate your entire OpenClaw setup between machines. One command to export, one command to restore.
bash
# Full export (creates encrypted .tar.gz.enc)
bash scripts/migrate.sh export
# Full export without encryption
bash scripts/migrate.sh export --no-encrypt
# Restore from backup
bash scripts/migrate.sh restore <backup-file>
# List what would be exported (dry run)
bash scripts/migrate.sh export --dry-run
# Export only specific components
bash scripts/migrate.sh export --only config,memory,skills
ComponentPathIncludedGlobal config~/.openclaw/openclaw.json✅Agent config~/.openclaw/agents/✅Workspace files~/.openclaw/workspace/*.md✅Memory~/.openclaw/workspace/memory/✅Knowledge~/.openclaw/workspace/knowledge/✅Learnings~/.openclaw/workspace/.learnings/✅Scripts~/.openclaw/workspace/scripts/✅Skills (workspace)/.openclaw/workspace/skills/✅Cron jobsvia /.openclaw/workspace/memory/conversations/Optionalopenclaw cron list --json✅Conversations
bash scripts/migrate.sh restore <backup-file>openclaw gateway restartopenclaw status