#What is best practice to backup clawdbot? What files and folders?

1 messages ยท Page 1 of 1 (latest)

bitter hatch
#

Iโ€™m planning on pushing the ~/clawd and ~/.Clawdbot folders. In particular the .clawdbot folder has random gateway binary data (sqlite) and the oauth tokens under auth-profiles.json.

Is there a better way to backup?

charred sleetBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

zealous nimbusBOT
# bitter hatch Iโ€™m planning on pushing the ~/clawd and ~/.Clawdbot folders. In particular the ....

Good question! Here's the recommended approach:

What to back up:

  1. Workspace (~/clawd) โ€” Git backup is recommended for these files:

    • AGENTS.md, SOUL.md, USER.md, IDENTITY.md, TOOLS.md, HEARTBEAT.md
    • memory/ folder with daily logs
    • MEMORY.md if you have curated long-term memory
    • Put it in a private GitHub/GitLab repo
  2. ~/.clawdbot/ โ€” Keep this local, DO NOT commit to git:

    • ~/.clawdbot/clawdbot.json โ€” your config (backup manually if needed)
    • ~/.clawdbot/credentials/ โ€” OAuth tokens (this is your sensitive stuff)
    • ~/.clawdbot/agents/<agentId>/sessions/ โ€” session transcripts

What NOT to commit:

  • Gateway binary data (sqlite)