diff --git a/server/src/nest/plugins/install/host-compat.ts b/server/src/nest/plugins/install/host-compat.ts index 7218b0d47..ee4135ffa 100644 --- a/server/src/nest/plugins/install/host-compat.ts +++ b/server/src/nest/plugins/install/host-compat.ts @@ -36,7 +36,7 @@ let warnedUnparseable = false; * rc of 4.0 IS 4.0. * * A null host NEVER blocks anything (see {@link hostSatisfies}). This is deliberate: - * APP_VERSION is a Docker build ARG that defaults to the literal string `dev`, and an + * a source install can set APP_VERSION to anything (`dev`, a branch name), and an * unversioned build must stay fully usable. The warning exists so that a MISCONFIGURED * APP_VERSION in production — which silently switches this whole gate off — is visible * in the logs instead of being discovered when an incompatible plugin misbehaves. diff --git a/wiki/Backups.md b/wiki/Backups.md index 6d5d22004..56f7c3edd 100644 --- a/wiki/Backups.md +++ b/wiki/Backups.md @@ -40,6 +40,9 @@ Before restoring, TREK runs integrity checks on the uploaded database: 1. **SQLite `PRAGMA integrity_check`** — verifies the database file is not corrupt. 2. **Required tables present** — confirms the file contains `users`, `trips`, `trip_members`, `places`, and `days`. Files missing any of these are rejected as not being a valid TREK backup. +3. **Not from a newer TREK** — a backup whose database a newer release migrated is refused with `This backup was made by a newer TREK version. Update TREK before restoring it.` Restoring it would leave this version unable to start. + +The database being replaced is kept as `data/pre-restore-