On this page

Backup, upgrade and rollback

Last updated: 2026-11-16

Short answer: upgrading is not the hard part — returning to the last working state is. Write down what to back up, how to upgrade and how to roll back, and rehearse it once before go-live.

This is an operations reference for single-machine deployments; use the README inside your downloaded package and the docs for the exact commands of your version.

1. Three kinds of data

DataLocationHeld byBackup method
Accounts, ciphertext, resource stateDeployment data/ and configServerStop the service and copy the directory
Messages and keysClient deviceUserClient backup/export
Deployment artifactsHost binary, wasm/, .env, wasmx.jsonOperatorKeep the previous installer and config copy

Boundary: a server backup restores accounts, ciphertext and resource state only; it cannot decrypt messages. If client data is lost, the server cannot recover it. Backups themselves contain sensitive data — encrypt them and restrict access.

2. Backup checklist

Before upgrading:

  1. Stop the service (or confirm no writes are in flight);
  2. Back up the whole deployment directory, especially data/, .env, wasmx.json, wasm/;
  3. Record the current version and resource pack versions;
  4. Keep the previous host and resource .tgz files — do not keep only the latest;
  5. Rehearse a restore on another machine or directory;
  6. Remind users to back up messages and keys (device changes or clearing site data will lose them).

3. Upgrade flow

  1. Download the new host and required resource packs;
  2. Stop the service and confirm the process exited;
  3. Install the new host and add resources with wasmx add as needed;
  4. Run wasmx status and confirm resource count and paths;
  5. The host applies forward database migrations automatically (1.1.0 is the baseline; database migrations applied in the log means success). A failed migration keeps the old schema and refuses the new one — roll back first;
  6. Verify login, direct chat, group chat, channels and AI/connectors (if enabled) with a real account.

Do not run two versions at once, and never replace data/ without a backup. From 1.1.0 onward schema changes no longer require rebuilding the database, but a backup is still mandatory.

4. Rollback flow

5. Verification checklist

ItemPass criteria
Resource loadwasmx status matches the expected resource count
LoginAdmin and regular accounts can sign in
MessagesDirect/group chats send and decrypt (E2EE sessions)
ChannelsSubscribe, publish and read work
AI/connectorsIf enabled, replies and approval flow work
BackupRestore rehearsal succeeds and data is readable

6. Boundaries and advice

FDE delivery note

Backup and rollback are exit criteria for a pilot: verify one restore before handover and record the version, backup location and rollback steps; see the FDE delivery guide.

Next steps