Data export and portability
Four business export surfaces, why content has no export button, which cells a whole-site archive carries and which one must move together, and the boundary that archives are not encrypted.
"Can the data be taken away" is the question a self-hosted product should most be asked. This article divides by what is taken: business data, the content itself, the appearance, and the whole machine.
Business data has four export surfaces, each with its own permission. Form submission records (require form read permission), leads (require lead read permission), knowledge-base entries (CSV, require customer-service read permission), and human conversations and messages (one strictly read-only export). The first two are for showing reports to people and feeding a CRM; the knowledge-base one is deliberately shaped so it can be fed back in — the import accepts the same header (title,body,language), so "export, tweak, and import again" works without writing scripts to align fields. That conversation export is read-only matters: it changes no state, advances no watermark, and produces no "handled" illusion.
The content itself has no "export" button; there are two paths for taking it. One is public JSON: GET /api/v1/content returns the list and GET /api/v1/content/{slug} returns the detail, with fields including body, summary, publish time and custom fields; this is a stable read surface for "moving content elsewhere". The other is the whole-site archive (see below). Why not make an "export all site content as ZIP": it would become a fifth truth — content, snapshots, the translation table and revision history are separate tables, and exporting content alone would be allowing a thing that "looks like a backup but cannot be restored from" to exist. If you move, move the restorable copy.
The appearance can be exported as a theme package. GET /api/v1/themes/{slug}/export packages a theme version, containing the manifest, templates, assets and the preview image; the preview image is bound to the source content digest, so a package with "image from version A, content from version B" cannot occur. This path exists for reuse: a theme refined on one machine can be uploaded to another, instead of copying directories.
The whole machine is taken away through the whole-site archive. It archives all state of this instance: the database, uploaded files, themes, plugin code and the trust store, plus the domain private keys and account keys in the certificate cache — this cell must move together, otherwise domain licensing and HTTPS break after cross-instance restoration. Taking it out requires a dedicated code independent of read permissions (being able to see the operations panel is not the same as being able to take the whole site), and both creating and taking it leave a fingerprint-bearing record on the audit chain. Recovery points (automatically generated whole-site snapshots) keep 200 entries by default, configurable in the backend, not converted to time.
Restoration is another command, not "copying files back". Archive → misi-restore → start the service; this chain has a dedicated drill script that walks it through; before restoring, the manifest digest is verified against the actual files, and an unsafe path or modified bytes both refuse to continue. Every cell in the archive manifest has 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 — "one cell was not backed up" and "this site never had this cell" must look different on the manifest, otherwise nobody can explain what was lost in a cross-instance restoration.
One thing not done yet, but it affects how you place backups. Archives are not encrypted. Anyone who can read the environment variables on the same machine can read the passwords, so encryption does not stop "the people on this machine"; what it stops is "after these bytes are moved elsewhere". That is why the documentation says it plainly: do not sync the backup directory into shared storage or object buckets; to genuinely store offsite, encrypt externally yourself with an external tool (the age / restic / gpg kind). This boundary is not an omission; it is the result of the judgment that "the new failure mode encryption introduces (lost password = the only backup unrecoverable) is harder to deal with than the scenario it blocks" — if it is really done, the password must not share a machine with the master key, the manifest must store a password fingerprint, and there must be an "what to do if the password is lost" exit.
The last path for taking things out is the easiest to overlook: the site's self-description. Structural information such as content types, fields, panels, permission codes and theme data contracts can all be asked for through read-only interfaces (CSV is not the only thing that counts as export). To fight lock-in over the long term, metadata matters more than data — data can be moved, but if the structure cannot be carried, the receiving system has to guess.