Skip to Content

Backing up a host

BotBandit keeps what a host owns in its application home (~/.botbandit unless you named another one). Without a web backend, that directory is your data: every session, the document vault, the config. Your config can move some of it elsewhere (the vault, project and scratch homes, workspaces); boba backup excludes names those paths too.

BotBandit doesn’t run backups itself. Use the backup tool you already have (restic, borg, Time Machine) for encryption, deduplication, retention and off-site copies. BotBandit tells it what to leave out.

What matters

PathBack up?What
sessions/yesSession logs, the only copy of every session. Usually the largest thing worth keeping
docs/yesThe document vault
botbandit.config.yamlyesThe config; holds credentials
secrets/, openai-auth.jsonyesCredentials
state/, skills/, extensions/, installation-idyesSmall: caches, your own skills and extensions, this host’s identity
projects/, scratch/yesWhere sessions work: what agents wrote there exists nowhere else
generated-images/, browser recordings, and anything you or your agents put in the homeyesContent
worktrees/yesWorkspaces. Commits live in the repository they branch from, but uncommitted work and new repositories live only here. Exclude node_modules/ and build output to keep it small
supabase/yesA local backend’s project and keys, but not its database (below); holds credentials
processes/, daemon.log, web/, bin/noLogs, and downloads BotBandit fetches again
the browser profile (browser.profileDir)noThe agent browser’s logged-in sessions, often the largest directory. Back it up only on purpose

Session logs are append-only JSONL and the vault is Markdown, so a backup taken while the daemon runs is safe.

The exclude list

boba backup excludes prints what to leave out, built from the paths BotBandit uses and your config’s browser profile, so it stays current. Its header names the data your config keeps outside the home; add those paths to the backup. Regenerate it after changing those settings.

boba backup excludes > ~/.botbandit-excludes # restic restic backup ~/.botbandit --exclude-file ~/.botbandit-excludes # borg borg create --exclude-from ~/.botbandit-excludes ::'{hostname}-{now}' ~/.botbandit

For Time Machine, --format tmutil prints tmutil addexclusion commands for the paths that exist. The exclusion is stored on the file itself, so run them again when something new appears. Review them, then run them:

boba backup excludes --format tmutil > /tmp/boba-tm.sh sh /tmp/boba-tm.sh

Each line is a pattern to restic and borg: a home path containing *, ?, [ or (for restic) $ needs escaping by hand.

boba doctor also lists what removed features left behind in the home (such as downloaded speech models), with their size and the command that deletes them.

Traps

The config, secrets/, openai-auth.json and supabase/ hold credentials, and so does the browser profile if you include it. Encrypt the backup: restic always does; pick an encrypted mode for borg init; turn on encryption for a Time Machine disk.

  • A local backend is a running Postgres. Its database lives in the Supabase CLI’s own directory (~/.supabase/stacks/ on the native runtime), outside the BotBandit home, and a file copy of a running database isn’t reliable. Either stop the daemon before the file backup (boba daemon stop, which refuses while sessions run unless --force, then stops the stack; check boba daemon logs for “stopped the local Supabase stack”), or exclude that directory and dump the database with pg_dump, using the database URL that ~/.botbandit/bin/supabase status --workdir ~/.botbandit/supabase prints.
  • Storage keeps file metadata in extended attributes. The local backend’s image files (under supabase/) carry their content type in xattrs. restic, borg and Time Machine keep them; a plain tar or cp does not.
  • A restored home is the same host. installation-id names this host in the fleet. Restore it on the same machine, or on a replacement once the old one is gone. To copy a home onto a second machine while the first still runs, delete installation-id there first.
  • Copies of the config hold credentials too. Backup copies such as botbandit.config.yaml.bak are backed up like any other file.
Last updated on