Skip to content

Upgrades and backups ​

Versions ​

Each release is a tag vX.Y.Z with release notes. The server image gets three tags: X.Y.Z, X.Y and latest.

Read the release notes before you upgrade: a release that changes the server or needs a step from you says so there. To upgrade on your own schedule, pin a version in .env (ANNOTO_VERSION=0.2.0) instead of latest.

Upgrade ​

  • Docker Compose: set the new ANNOTO_VERSION in .env if you pinned one, then docker compose pull && docker compose up -d. A release may change compose.yml too; its notes say so.
  • Fly.io: pull the new release in your clone and run scripts/deploy-fly.sh <app> again.
  • From source: pull, then npm ci && npm run build && npm run build:server, and restart the server.

Back up ​

The vault is one SQLite database: vault.db with its vault.db-wal and vault.db-shm files. It holds only ciphertext, so a copy is safe to keep anywhere, and it opens only with your passphrase or recovery key.

Copy the three files together while the server is stopped, so the copy is whole:

sh
docker compose stop && cp -a data "data-$(date +%F)" && docker compose start

On Fly.io the volume gets a daily snapshot: fly volumes snapshots list <volume id> lists them (fly volumes list --app <app> gives the id).

Every device that syncs also keeps all the notes. If the server is lost with no backup, start a new one, then in the desktop app: Settings › Sync, Disconnect, connect to the new server and create the vault. The other devices join it with its passphrase.

Move to another server ​

Stop the old server, copy its data folder (all three files) to the new one, and start it there. On each device: Settings › Sync, Disconnect, connect to the new address, and reconnect with the passphrase.

From the earlier server ​

The earlier server kept the browser's notes in plaintext in its own database, annoto.db (or the file ANNOTO_DB named). This server never reads it, and a browser opening it starts empty. Before you upgrade:

  1. Stop the old server.
  2. Copy annoto.db, annoto.db-wal and annoto.db-shm off the server, all three together, and keep them: they are the only copy of the notes written in the browser (the newest may sit only in the -wal file), for the desktop app (when it syncs) or a one-time import later.
  3. Then delete the three files from the server, and unset ANNOTO_DB.

Until then the server prints a warning at start when it finds annoto.db beside the vault or in its working directory, or when ANNOTO_DB is set.