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
-
Read the release notes on the releases page. The top says what the release brings and anything you must do.
-
Back up the database and the bucket.
-
Check the new version accepts your config, without starting it. With Docker Compose:
DRUSITE_VERSION=1.0.1 docker compose run --rm drusite check-configElsewhere, run the new image’s
check-configwith 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.