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
| Data | Location | Held by | Backup method |
|---|---|---|---|
| Accounts, ciphertext, resource state | Deployment data/ and config | Server | Stop the service and copy the directory |
| Messages and keys | Client device | User | Client backup/export |
| Deployment artifacts | Host binary, wasm/, .env, wasmx.json | Operator | Keep 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:
- Stop the service (or confirm no writes are in flight);
- Back up the whole deployment directory, especially
data/,.env,wasmx.json,wasm/; - Record the current version and resource pack versions;
- Keep the previous host and resource
.tgzfiles — do not keep only the latest; - Rehearse a restore on another machine or directory;
- Remind users to back up messages and keys (device changes or clearing site data will lose them).
3. Upgrade flow
- Download the new host and required resource packs;
- Stop the service and confirm the process exited;
- Install the new host and add resources with
wasmx addas needed; - Run
wasmx statusand confirm resource count and paths; - The host applies forward database migrations automatically (1.1.0 is the baseline;
database migrations appliedin the log means success). A failed migration keeps the old schema and refuses the new one — roll back first; - 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
- Roll back to the pre-upgrade data backup; do not downgrade data written by the new version;
- Keep old
.tgzfiles in advance; keeping only the latest makes rollback impossible; - Verify login, messages, channels and connectors after rollback;
- If the cause is configuration, restore the config copy before rolling back binaries.
5. Verification checklist
| Item | Pass criteria |
|---|---|
| Resource load | wasmx status matches the expected resource count |
| Login | Admin and regular accounts can sign in |
| Messages | Direct/group chats send and decrypt (E2EE sessions) |
| Channels | Subscribe, publish and read work |
| AI/connectors | If enabled, replies and approval flow work |
| Backup | Restore rehearsal succeeds and data is readable |
6. Boundaries and advice
- The current shape is single-machine; cluster/HA are planned for a future release, and you currently schedule your own downtime window.
- End-to-end encryption covers private/group text only; media, channels, AI and connector data have separate boundaries.
- When E2EE is enabled, the server stores ciphertext; when it is off, messages follow the operator’s storage policy and retention is operator-configured; do not use “drop the database” instead of a retention policy.
- If the download archive keeps only the latest stable and first public versions, rollback depends on the installer you saved yourself.
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.