12 min read November 16, 2026

Odysseus AI Backup and Restore: Protect Your Data

A practical, source-linked runbook for snapshots, secrets, Docker volumes, offsite copies, and a controlled restore.

Odysseus AI Wiki Editorial Team
Odysseus AI Wiki Editorial Team
Independent, fan-made documentation based on the public Odysseus project repository.

Quick answer: An Odysseus AI backup is more than a copy of one SQLite file. Snapshot the repository's data directory with the official odysseus-backup command, copy .env separately, include the Docker ChromaDB volume when you use Compose, verify the archive, and test a restore before trusting an update or migration.

People usually search for an Odysseus AI backup after something has already made the next change feel risky: a Git update, a Docker rebuild, a move to a new SSD, or a host that is running out of space. The safe response is to make the recovery boundary explicit before touching the installation. This guide focuses on that boundary. It does not replace the official repository documentation, and it does not claim that every future release keeps the same paths. Instead, it explains how to read the current snapshot workflow, what it protects, what it leaves outside the archive, and how to prove that a restore is usable.

The short answer: what to back up before an Odysseus AI update

Start with the official scripts/odysseus-backup snapshot command from the repository root. It is designed to capture the application state in data/ while the service is running, including the SQLite database, memory, vault, retrieval indexes, documents, uploads, sessions, and the encryption key. That is the core Odysseus AI backup.

Then handle the two boundaries outside that core snapshot. First, .env lives beside data/ and can contain an initial admin password or provider credentials, so copy it through a private channel instead of assuming the tarball contains it. Second, a Docker deployment may store ChromaDB vectors in a named volume. The backup script cannot see a volume that is mounted outside data/, so that volume needs its own archive or snapshot.

The useful output is not merely a tar.gz file. You want a dated archive, a recorded checksum or successful verify result, a private second copy, and a short restore note that names the exact Odysseus commit, model endpoint, Compose project, and destination path used for the test.

Recovery boundary

Treat an Odysseus AI backup as a set: data/ plus the required .env values plus any external Docker volume. If one part is missing, the restored UI may open while memory, documents, encrypted secrets, or retrieval results fail later.


What the official snapshot includes and skips

The current public backup documentation describes data/ as the state directory. The SQLite app database contains application records, while separate JSON files and folders hold settings, memory, presets, the vault, personal documents, uploads, and retrieval data. The Fernet key in data/.app_key is especially important because encrypted values cannot be read after a restore without the same key.

The snapshot tool uses SQLite's backup API rather than copying an actively changing database file byte for byte. That reduces the chance of capturing an inconsistent SQLite file while the application is serving requests. It does not remove the need to verify the archive, protect the secrets inside it, or test the whole workflow on a disposable target.

Some large or optional data is skipped by default. The official guide calls out Deep Research runs and cached mail attachments as opt-in additions. If those records matter to your workflow, use the documented include flags and confirm the resulting archive size. Do not guess flags from an old blog post; check the script's help output on the commit you actually run.

State or file Core snapshot? What to do
data/app.db Yes Let the official script create the SQLite-safe copy.
data/.app_key Yes Store the archive like a password; it unlocks encrypted values.
memory, vault, documents, uploads Yes Check the archive listing for the folders your workflow uses.
.env No Copy separately and redact it from tickets, Git, and chat.
Docker ChromaDB named volume No Archive the volume using the Compose-aware procedure.
research runs and mail attachments Usually no Add the official opt-in flags only when needed.

Create and list an Odysseus AI backup from the repository root

Run the commands from the cloned Odysseus repository, not from an arbitrary parent folder. The script resolves the data directory and writes a timestamped tarball under backups/ by default. Using the repository root also makes it easier to record the current Git commit and to repeat the same command after a migration.

Take the first snapshot before pulling code or rebuilding containers. If you are preparing a risky change, stop background jobs that constantly write large files, note the active model and provider configuration, and wait for any upload or research task to finish. The tool is designed to work while the app is running, but a quiet period makes your validation notes easier to interpret.

After the command completes, list the available snapshots and keep the newest filename in your change record. A filename with a timestamp is useful for humans, but it is not proof of integrity. The next step is verify, followed by an extraction or restore rehearsal on an isolated directory.

  1. Record the source state

    Write down the Git commit, deployment mode, host OS, Compose project name, model endpoint, and the location of data/.

  2. Create the snapshot

    Run the official snapshot command and wait for the tarball to close before copying it.

  3. Inspect the result

    Use list and verify, then confirm the archive contains the expected data paths without printing secrets to the terminal log.

Create a standard snapshot
./scripts/odysseus-backup snapshot
List recent snapshots
./scripts/odysseus-backup list
Include optional research and attachment data when required
./scripts/odysseus-backup snapshot --include-research --include-attachments

Protect secrets and Docker ChromaDB storage

An Odysseus AI backup contains secrets by design. The archive can include the Fernet key, vault data, sessions, and stored provider or API tokens. Store it with the same care as a password database: use an access-controlled directory, encrypt it at rest when it leaves the host, and never commit it to Git or attach it to a public issue. A backup that is readable by every user on a shared machine is not a safe backup.

Copy .env separately only when it is necessary for the restore. Keep the original permissions, record which values are required, and rotate credentials if you believe the file was exposed. Do not paste a full .env into a support request. A short inventory such as variable names, redacted endpoints, and a note about secret rotation is enough for troubleshooting.

Docker adds a storage boundary. On the current Compose layout, ChromaDB vectors are kept in a named volume commonly called chromadb-data rather than inside ./data. Confirm the actual volume with docker volume ls and the Compose file for your commit. Older or manually edited mounts may leave vectors in a container writable layer, so read the migration warning before recreating containers.

Do not confuse privacy with recoverability

Keeping data local limits provider exposure, but a local archive still holds sensitive material. Encrypt offsite copies and test that the key, vault, and vector store restore together.

Risk Why it happens Safer check
Archive leaked The tarball contains keys and tokens. Encrypt private copies and restrict permissions.
.env omitted Environment files sit outside data/. Copy it separately, then redact and rotate when needed.
Vectors missing ChromaDB lives in a Docker volume. Identify and archive the named volume before rebuild.
Old mount lost A custom Compose edit used the container layer. Read the repository migration note and inspect mounts first.

Verify the archive and store an offsite copy

Use the official verify command against the exact tarball you plan to keep. Verification should happen before you copy the file to a NAS, another disk, or object storage. If verify fails, do not treat a partially created archive as a usable Odysseus AI backup; create a new snapshot after checking disk space, permissions, and the source directory.

Keep at least one copy on a different failure domain. A second folder on the same disk protects against a mistaken update, but it will not help with disk failure or ransomware. A private NAS, encrypted removable drive, or access-controlled object store can be the second destination. Keep retention short enough that you can explain which archive is current and long enough to recover from a bad update discovered days later.

Record the verify result, archive byte size, checksum if your storage workflow uses one, and the destination path. The note should not contain the archive contents or secret values. It only needs enough information for a future operator to find the file and repeat the validation.

  • Use a private destination with encryption at rest.
  • Keep the source archive until the second copy has been verified.
  • Document retention, owner, creation commit, and restore target.
  • Never use a public paste, issue attachment, or Git repository as backup storage.
Check the tarball without restoring
./scripts/odysseus-backup verify backups/odysseus-backup-YYYYMMDD-HHMMSS.tar.gz
Write a checksum beside a private copy
sha256sum backups/odysseus-backup-YYYYMMDD-HHMMSS.tar.gz

Restore Odysseus AI without losing the wrong state

Restore is destructive because it replaces the current state with the snapshot you select. Plan a maintenance window, stop the application or Compose stack as the official instructions require, and make a second emergency copy of the current data before you run the restore command. That extra copy gives you a way back if you selected the wrong archive.

Use restore --yes only after verify succeeds and you have checked the target path. Do not restore a production archive over a test environment that can reach real provider accounts, and do not restore a test archive over the only copy of production data. Keep the archive and the current source commit visible in your change record so another operator can reconstruct the decision.

After the service starts, validate behavior rather than stopping at an HTTP 200 page. Sign in with the expected account, open a known memory or document, check that encrypted settings load, run a small retrieval query, and confirm the configured model endpoint responds. For Docker, check that the ChromaDB volume is mounted and that vector-backed search does not silently return an empty result.

If the restored instance cannot decrypt values, the most common explanation is a missing or mismatched data/.app_key. If documents appear but retrieval is empty, inspect the ChromaDB volume and the Compose mount. If login state is confusing, clear stale sessions only after preserving the restored data and recording the action.

  1. Freeze the target

    Stop writes, save the current data directory separately, and confirm the destination is the intended host.

  2. Restore the verified archive

    Run the official restore command with the exact path you verified; do not improvise a raw tar extraction.

  3. Validate user-visible state

    Check login, memory, documents, encrypted settings, retrieval, model connectivity, and Docker volume mounts.

  4. Record gaps

    Write down anything intentionally excluded, such as research runs or mail attachments, so the next operator does not mistake it for corruption.

Restore a verified archive after stopping the service
./scripts/odysseus-backup restore backups/odysseus-backup-YYYYMMDD-HHMMSS.tar.gz --yes
Restart the deployment using its documented path
docker compose up -d --build

Use the backup during updates and host migration

For a normal update, the safest order is snapshot, verify, copy offsite, pull the intended branch or commit, rebuild the documented services, then run the post-update checks. Do not combine an unreviewed code change, a database migration, a volume cleanup, and a host move into one opaque command. Keeping the steps separate makes a restore decision possible.

For a host migration, recreate the directory layout first, restore data/ and the matching .env values, restore the Docker vector volume when applicable, and only then start the service. Confirm file ownership and paths inside the new container. A successful container start proves that the process booted; it does not prove that the old memory, vault, documents, and embeddings are usable.

The official repository is the source of truth for command names and path changes. This article was checked against the public backup documentation on November 16, 2026; recheck the upstream file when a later release changes the script or Compose volume layout.

Keep the restore rehearsal small

A disposable host or isolated directory is enough to catch missing keys, omitted volumes, wrong ownership, and stale paths before a real outage.

Change Before After
Code update snapshot + verify + offsite copy pull intended commit, rebuild, validate
New disk record paths and ownership restore data, env, volume, then start
Docker project rename record project and volume names map the old named volume before restore
Credential rotation preserve the archive privately rotate exposed values and update the restored env

Odysseus AI backup and restore FAQ

No. The official documentation places .env outside data/, so copy it separately when the restore needs those values and protect it like a secret.

The official snapshot tool is designed to run while the app is running and uses SQLite's backup API. A quiet period still makes validation easier, and you must verify the resulting archive.

Yes when your Compose deployment stores vectors in a named volume outside data/. Identify the actual volume in your Compose file and archive it with a matching snapshot note.

The core snapshot covers the data directory, including the SQLite database, encryption key, vault, memory, retrieval indexes, personal documents, uploads, and related state. Optional research runs and mail attachments may require documented include flags.

Run the official scripts/odysseus-backup verify command against the exact tarball, then keep the successful result and checksum with the private copy.

Yes, provided the destination has a compatible project layout and the required environment values. Restore data, .env, and any external vector volume, then validate permissions, login, memory, documents, retrieval, and model connectivity.

No. They can contain the Fernet key, vault data, sessions, and provider tokens. Use private encrypted storage with controlled access instead.

Check the Docker ChromaDB volume and mount mapping first, then confirm that the restored data directory and encryption key match. A running container alone does not prove that vector data was restored.

Official sources and verification notes

  1. Odysseus official backup and restore documentation - Commands, state coverage, secrets warning, verify, and restore behavior.
  2. Odysseus official repository - Check the commit, scripts, Compose mounts, and current setup before running commands.
  3. Docker volumes documentation - Reference for inspecting and backing up named volumes.

Related Odysseus AI guides

Last updated: November 16, 2026

Back to Odysseus AI Wiki