Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Upgrading

The server and the apps share one version, major.minor.patch.

  • Patch releases (1.0.0 → 1.0.1) are fixes. Upgrade any time, in any order.
  • Minor releases (1.0 → 1.1) add features. Upgrade the server first, then the apps. A newer app on an older server says which features need the server updated; an older app on a newer server keeps working.
  • Major releases (1.x → 2.0) can change what’s stored. Their release notes say what to do.

From 1.0, sync protocol 2 and every sealed format are stable: a format changes only through its version bytes, and every 1.x app reads what any 1.x app wrote.

Before you upgrade

  1. Read the release notes on the releases page. The top says what the release brings and anything you must do.

  2. Back up the database and the bucket.

  3. Check the new version accepts your config, without starting it. With Docker Compose:

    DRUSITE_VERSION=1.0.1 docker compose run --rm drusite check-config
    

    Elsewhere, run the new image’s check-config with the same config and secret files the server reads. Unknown keys are errors, so a renamed setting shows here rather than at start-up.

Upgrading

Docker Compose: set the version in .env (DRUSITE_VERSION=1.0.1), or leave it at 1 for the newest 1.x, then:

docker compose pull drusite
docker compose up -d

Helm:

helm upgrade drusite oci://ghcr.io/pranavajk1/charts/drusite --version 1.0.1 -n drusite -f values.yaml

The server applies new database migrations when it starts, before it listens. With several replicas, the first pod to start runs them while the others wait for the lock. To migrate as a separate step, set [database] migrate_on_start = false and run drusite-server migrate with the new image first.

Going back

Migrations only go forward. To go back to an older version, restore the database and bucket backups you made before upgrading, and run the older image. Whatever the server received after those backups is lost from it.

The apps

Desktop apps update themselves from Settings → About → Check for updates; phones and Linux packages are updated as Check for Updates describes. The web app updates with the server.

Upgrading to 1.0 from a 0.x or 1.0 pre-release

Encrypted workspaces need a 1.0 server and 1.0 apps, so upgrade the server first. Standard workspaces keep working with older apps on sync protocol 1 until 1.1, so people can update their apps at their own pace until then.