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
| Path | Back up? | What |
|---|---|---|
sessions/ | yes | Session logs, the only copy of every session. Usually the largest thing worth keeping |
docs/ | yes | The document vault |
botbandit.config.yaml | yes | The config; holds credentials |
secrets/, openai-auth.json | yes | Credentials |
state/, skills/, extensions/, installation-id | yes | Small: caches, your own skills and extensions, this host’s identity |
projects/, scratch/ | yes | Where sessions work: what agents wrote there exists nowhere else |
generated-images/, browser recordings, and anything you or your agents put in the home | yes | Content |
worktrees/ | yes | Workspaces. 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/ | yes | A local backend’s project and keys, but not its database (below); holds credentials |
processes/, daemon.log, web/, bin/ | no | Logs, and downloads BotBandit fetches again |
the browser profile (browser.profileDir) | no | The 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}' ~/.botbanditFor 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.shEach 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; checkboba daemon logsfor “stopped the local Supabase stack”), or exclude that directory and dump the database withpg_dump, using the database URL that~/.botbandit/bin/supabase status --workdir ~/.botbandit/supabaseprints. - 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 plaintarorcpdoes not. - A restored home is the same host.
installation-idnames 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, deleteinstallation-idthere first. - Copies of the config hold credentials too. Backup copies such as
botbandit.config.yaml.bakare backed up like any other file.