Omnibus Docs

Docs › Administration

Backups and updates

Everything your household does in Omnibus lives in one folder: the database, uploaded covers and journal images. Back that folder up and you can restore the whole server, or step back from an update that went wrong.

What to back up

FolderWhat's in itBack it up?
/config (./config next to your compose file)omnibus.db, the database, with its omnibus.db-wal and omnibus.db-shm companions; covers/; journal-images/. Accounts, progress, shelves, highlights, journals, reviews and settings are all in the database.Yes. It can't be rebuilt.
/cacheThumbnails, audiobook transcodes, converted and rebuilt EPUBs, and the log files.No. Omnibus rebuilds it.
Your library foldersYour ebooks and audiobooks. Omnibus doesn't move, rename or rewrite them, but books uploaded from the app are added here.Your own backups, as before.

Keep a copy of your docker-compose.yml too, since it holds your settings. If you've moved the covers or journal images elsewhere with OMNIBUS_COVERS_DIR or OMNIBUS_JOURNAL_IMAGES_DIR, back those folders up as well.

Omnibus has no backup button or export of its own; a copy of /config is the backup.

Back up with the server stopped

The simplest safe backup. Omnibus is unavailable for the few seconds it takes.

  1. In the folder with your compose file, stop Omnibus:

    docker compose stop omnibus
  2. Copy the config folder, for example into a dated archive:

    tar -czf omnibus-config-$(date +%F).tar.gz config
  3. Start it again:

    docker compose start omnibus

Store the archive somewhere other than the machine Omnibus runs on.

Back up while it runs

The database is SQLite, and recent changes sit in omnibus.db-wal until SQLite folds them in. Copying the files while Omnibus is writing can catch them half-way. To back up without stopping, let SQLite make the copy. The image doesn't include the sqlite3 tool, so install it on the host (the sqlite3 package on most Linux systems), then:

sqlite3 config/omnibus.db ".backup 'omnibus-backup.db'"
tar -czf omnibus-files-$(date +%F).tar.gz config/covers config/journal-images

The first line writes a complete, consistent copy of the database to omnibus-backup.db, changes included. The second copies the covers and journal images beside it. Run it as a user that can read config.

Restoring

  1. Stop Omnibus with docker compose stop omnibus.

  2. Move the current config folder aside (mv config config.old) rather than deleting it, in case you need it.

  3. Put the backup in its place. From a stopped-server archive:

    tar -xzf omnibus-config-2026-11-30.tar.gz

    From a .backup copy, make a new config folder, copy the file in as config/omnibus.db, and extract the covers and journal images into it. Make sure no omnibus.db-wal or omnibus.db-shm from another copy sits beside it.

  4. Give the files back to the user Omnibus runs as, the PUID and PGID from your compose file:

    sudo chown -R 1000:1000 config
  5. Start Omnibus with docker compose up -d, using the same version as the backup or a newer one. Check docker compose logs omnibus and sign in.

On a new machine, keep the library mounts at the same places inside the container (/books and /audiobooks) with the same files in them, so every book lines up with its record.

Updating

  1. Take a backup. Updates can change the database in ways an older version can't read, so this is your way back (see Rolling back).

  2. Pull the new image and recreate the container:

    docker compose pull
    docker compose up -d
  3. Omnibus updates the database as it starts. After a large jump between versions the first start can take a little longer. Watch docker compose logs -f omnibus until it says it's listening, then sign in.

A new release ships with every change merged to the project, so latest moves often. Each release's changes are in the release notes.

Staying on one version

To update only when you choose, use a version tag instead of latest:

    image: sesloan/omnibus:0.37.4

To move on, change the tag, then run docker compose pull and docker compose up -d. The tags are listed on Docker Hub. You can find the version a server is running in version from /api/_health (see Health, logs and metrics).

Rolling back

Database updates only go forward. Once a newer version has updated the database, an older version refuses to start on it, and its log says the database migrations failed. So going back to an older version means going back to a backup taken before the update:

  1. Stop Omnibus.

  2. Restore the config backup you took before updating.

  3. Change image: to the version you were on before, such as sesloan/omnibus:0.37.4.

  4. Run docker compose up -d.

Anything your household did between the backup and the rollback, such as progress, highlights or new shelves, is lost. If you're unsure about an update, take the backup right before it.

Getting admin rights back

Omnibus won't let you demote or delete the last admin, but you can still lose your way in: a forgotten password on the only admin account, or an admin who has left the household. You can make any existing account an admin from the compose file:

  1. Add the account's username to environment::

          OMNIBUS_INITIAL_ADMIN: "yourusername"
  2. Run docker compose up -d. As it starts, Omnibus makes that account an admin and logs a warning saying so. If no account has that username, nothing changes and the log says that instead.

  3. Remove the line and run docker compose up -d again. While it's set, it promotes that account on every start.

This doesn't change any password. To get back into an admin account whose password is forgotten, promote another account you can sign in to, then set a new password for the first one in Administration › People (see People and permissions).

Upgrading from an early release

Early releases kept journal images under /cache, which is meant to be safe to delete. They now live in /config/journal-images, and the first start after upgrading moves them there.

  • Look for the log line relocated journal images out of the data dir default. It reports moved and found; when the two are equal, the move is done.
  • If moved is lower than found, a failed to relocate journal image warning names each file that didn't move. Sort those out before you clear /cache.
  • If the cache was already cleared on an affected release, those images are gone, and their journal entries show a broken image.