TREE(74): training modules, entity profiles, 2890 references, keyword indices SPROUT(42): knowledge pages, project docs, curated source material SEED(164): daily notes, raw session logs, unprocessed material Updated AUDIT_MANIFEST.json with growth classifications.
92 lines
2.6 KiB
Markdown
92 lines
2.6 KiB
Markdown
---
|
|
pageType: source
|
|
id: source.psb-gemma-ocbackup-restore-instructions
|
|
title: psb-gemma-OCBackup-restore-instructions
|
|
sourceType: local-file
|
|
sourcePath: /home/topher/.openclaw/workspace-psb-gemma/memory/OCBackup-restore-instructions.md
|
|
ingestedAt: 2026-05-03T01:23:09.370Z
|
|
updatedAt: 2026-05-03T01:23:09.370Z
|
|
status: active
|
|
growth: sprout
|
|
---
|
|
|
|
# psb-gemma-OCBackup-restore-instructions
|
|
|
|
## Source
|
|
- Type: `local-file`
|
|
- Path: `/home/topher/.openclaw/workspace-psb-gemma/memory/OCBackup-restore-instructions.md`
|
|
- Bytes: 1940
|
|
- Updated: 2026-05-03T01:23:09.370Z
|
|
|
|
## Content
|
|
````text
|
|
# OCBackup — Restore Instructions
|
|
|
|
## What Gets Backed Up
|
|
- Workspace: SOUL.md, USER.md, IDENTITY.md, AGENTS.md, TOOLS.md, HEARTBEAT.md, MEMORY.md
|
|
- Memory: all files in workspace/memory/
|
|
- Scripts: all .sh files in scripts/
|
|
- Config: openclaw.json (with API keys redacted for safety)
|
|
- Skills: metadata (SKILL.md, _meta.json) for each installed skill
|
|
- Reports: last 4 weekly health reports
|
|
- Cron: snapshot of crontab at time of backup
|
|
|
|
## Where Backups Live
|
|
- Google Drive: OpenClaw/OCBackup/
|
|
- Named: openclaw_backup_YYYY-MM-DD.tar.gz
|
|
- Retention: 3 days (older auto-pruned)
|
|
|
|
## How to Restore
|
|
|
|
### List available backups
|
|
```bash
|
|
/home/HHS/.openclaw/scripts/restore_from_drive.sh --list
|
|
```
|
|
|
|
### Restore latest backup
|
|
```bash
|
|
/home/HHS/.openclaw/scripts/restore_from_drive.sh
|
|
```
|
|
|
|
### Restore a specific date
|
|
```bash
|
|
/home/HHS/.openclaw/scripts/restore_from_drive.sh 2026-02-25
|
|
```
|
|
|
|
### What happens during restore
|
|
1. Downloads the backup tarball from Google Drive
|
|
2. Creates a safety backup of your current state (in /tmp/)
|
|
3. Extracts and copies workspace files, memory, and scripts
|
|
4. Saves config (with redacted tokens) as openclaw.json.restored
|
|
5. Saves crontab snapshot as crontab.restored.txt
|
|
6. Validates core files exist
|
|
|
|
### After restore
|
|
1. Review restored files in ~/.openclaw/workspace
|
|
2. Re-add API keys to openclaw.json if needed (tokens are redacted in backups)
|
|
3. Restart OpenClaw: `openclaw gateway restart`
|
|
4. If something went wrong, roll back from the safety backup
|
|
|
|
## Moving to a New Machine
|
|
1. Install OpenClaw on the new machine
|
|
2. Set up gog (Google Workspace CLI) and authenticate
|
|
3. Run the restore script — it pulls everything from Drive
|
|
4. Re-add your API keys (Anthropic, OpenRouter, Telegram bot token)
|
|
5. Restore crontab: `crontab ~/.openclaw/crontab.restored.txt`
|
|
6. Restart OpenClaw
|
|
|
|
## Schedule
|
|
- Automatic backup runs every night at midnight local time
|
|
- Keeps last 3 days, prunes older backups
|
|
|
|
````
|
|
|
|
## Notes
|
|
<!-- openclaw:human:start -->
|
|
<!-- openclaw:human:end -->
|
|
|
|
## Related
|
|
<!-- openclaw:wiki:related:start -->
|
|
- No related pages yet.
|
|
<!-- openclaw:wiki:related:end -->
|