Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Backups

Back up two things, and keep them in separate places:
  1. The database.
  2. QUBIT_SECRET_KEY, and any previous keys still in use.

Why the key matters

Vault contents are encrypted by your users' own keys, not the server's, so a restored database still holds every vault without the secret key. What the secret key protects:
  • each organization's SSH CA private key,
  • pending invites,
  • TOTP secrets,
  • email settings saved in the dashboard.
Restore the database without the right key and all of those become unreadable. Hosts that trust the old CA would need a new one, and two-factor sign-in would fail for everyone who turned it on. The server notices at startup: it logs a loud error and /readyz answers 503.

SQLite

The database is /data/qubit.db, in WAL mode. Either:
  • Take a consistent copy while it runs, with SQLite's backup command, from a throwaway container on the same volume:
    docker run --rm -v qubit-data:/data -v "$PWD":/backup alpine \ sh -c 'apk add -q sqlite && sqlite3 /data/qubit.db ".backup /backup/qubit-$(date +%F).db"'
  • Or stop the container and copy qubit.db, qubit.db-wal and qubit.db-shm together.
Never copy only qubit.db while the server is running. The latest writes may still be in the WAL file.

PostgreSQL

Use pg_dump or your provider's snapshots, as for any other database.

Restore

  1. Restore the database.
  2. Start the server with the same QUBIT_SECRET_KEY.
  3. Check that /readyz answers 200.