Language

Backups, recovery points and whole-site archives

Per-item revisions, theme versions, publish snapshots and whole-site archives are four things; recovery points keep 200 by default, backups and downloads are restricted to administrators, and archives are not encrypted in this version.

"Backup" in this system is four different things, each with its own purpose, granularity and cost. Merge them into one word, and when something goes wrong you will grab the wrong one.

First, per-item revision: back to one version of the content

Each edit produces one revision. It answers "what did yesterday's version of this article say", and the action is to roll one piece of content back.

When rolling back to a version, that version lands at the publish time written on it; only when it has none filled in does it get stamped as today. Rolling last month's version back but bumping it to today would at the same time change the list ordering, the day printed on the page, and the date-filtered results — while the audit only says "restored".

Second, theme versions: editing a theme registers a new version

Themes cannot be changed byte-for-byte in place. Each save registers a higher version number, because published snapshots pin the theme by "identifier + version + digest": editing in place would make the old snapshot's digest not match, or force the system to write back that column — both would leave "which version visitors see now" without an answer.

The version number has only one owner: that one field in the theme list. The "bump a version" action on the interface changes exactly that.

Third, publish snapshots (recovery points): the whole site back to a known state

Each publish leaves a snapshot that pins that version of the content + the site configuration + the theme version as one whole group, so a recovery point is naturally whole-site: you cannot roll back only the body text while keeping today's navigation.

Automatic recovery points keep 200 by default, and this number is configurable in the backend. They are kept by count — not converted into time, and not altering the number of publishes.

One point to be clear about: a snapshot is not the version visitors see. Content edits take effect for visitors immediately; the snapshot exists so you can go back.

Fourth, whole-site archives: the copy that moves away

An archive is a complete copy: the database, uploaded files, themes, plugins and the certificate cache. It is only streamed as an archive package at download time and never leaves a copy on disk; taking it out requires a separate permission code and records an audit entry with a fingerprint.

Every cell in an archive must have one of three statements: it is a member, it was configured with a path but was not on disk at the time, or this deployment never handed it to the archiver, with a reason attached. Missing one of the statements and the archive is refused. Because if "one cell was not backed up" and "this site never had this cell" look the same on the manifest, the cell lost during cross-instance restoration would never be known to anyone.

This version does not encrypt archives; this is a ruling, not an omission: anyone who can read the configuration on the same machine can read the passwords, encryption only blocks the single scenario of "whole disk or object-storage bucket leakage", and the new failure mode it introduces is "lost password = the only backup unrecoverable" — which is harder to deal with than leakage. To put archives elsewhere, encrypt them yourself with an external tool, and do not sync the backup directory into shared storage.

Who can touch these

Backups, downloads and restoration are restricted to administrators. This is not "ticked for administrators by default" but a hard constraint: ordinary roles cannot be granted these permissions, grants wrongly assigned historically are withdrawn during startup and recovery coordination, and the backend shows which roles and which permissions were withdrawn. Read-only operations lists can be delegated to non-administrators; the download of database backups cannot.

Cross-instance restoration: the actual shape of changing machines

The go-live path is usually "back up the old site → set up the new machine → restore". When restoring:

  • Accounts are not moved. The new machine uses its own administrator and agent accounts; imported accounts become disabled historical identities and cannot log in.
  • Chat logs are imported as history, conversations are closed as historical, they will not become "waiting for someone to take them" on the new machine, and the import will not send the new machine's agents an escalation alert.
  • The knowledge base restores as usual; it is content, not accounts.
  • The certificate cache (ACME private keys and account keys) is the item that must move during cross-instance restoration — the domain's HTTPS belongs to it.

Neither the domain nor the instance passwords take part: restoration moves the content onto another machine; it does not copy that machine's identity over.