Skip to content

Conversation

@leppert
Copy link
Owner

@leppert leppert commented Feb 1, 2026

Expand R2 persistence to cover the entire /root/clawd/ workspace directory,
not just skills. This prevents data loss on container restarts for:

  • Agent memory and notes
  • Tool configuration files (TOOLS.md)
  • Tone of voice documentation
  • Custom directories created by agents

Changes:

  • sync.ts: Add rsync for /root/clawd/ to R2/clawd/ with exclusions for
    .git, node_modules, and temp files
  • start-moltbot.sh: Restore full workspace from R2 before legacy skills restore

Backwards compatible with existing R2 backups that only have skills/.

Based on cloudflare#88

https://claude.ai/code/session_01Ckh9sHzHzPwkNBBPuzAapq

Expand R2 persistence to cover the entire /root/clawd/ workspace directory,
not just skills. This prevents data loss on container restarts for:
- Agent memory and notes
- Tool configuration files (TOOLS.md)
- Tone of voice documentation
- Custom directories created by agents

Changes:
- sync.ts: Add rsync for /root/clawd/ to R2/clawd/ with exclusions for
  .git, node_modules, and temp files
- start-moltbot.sh: Restore full workspace from R2 before legacy skills restore

Backwards compatible with existing R2 backups that only have skills/.

Based on cloudflare#88

https://claude.ai/code/session_01Ckh9sHzHzPwkNBBPuzAapq
@leppert leppert merged commit d95403f into main Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants