How project checkpoints work
Migrated page, not yet verified against the current code. Treat values, paths and examples as indicative until this notice is removed.
A checkpoint is the whole engineering project at one moment, kept on the eaxScada server so that it can be compared with any other state and the project put back to it. Engineers name the ones that matter (“FAT”, “SAT”, “Commissioning”); the server takes the others itself. Checkpoints are part of Starter, Pro and Enterprise.
To use them, see Checkpoints: FAT, SAT and reverting.
What a checkpoint holds
Section titled “What a checkpoint holds”Every configuration area of the project, each document as it is stored:
- the Studio’s projects, screens, display tree, components, UDTs, styles and deploy manifests;
- the driver configuration (channels, devices, tag mappings);
- alarm definitions and alarm classes;
- recipes, dashboards, 3D assets, fonts, drawings and translations;
- server file roots;
- eaxTags definitions and scripts.
It never holds users, passwords, API tokens, the licence, keys, historian data, the audit trail, the alarm history, eaxTags runtime values or the built-in safety and system alarms. Driver secrets stay in the driver configuration as stored, encrypted.
How it is stored
Section titled “How it is stored”Checkpoints live in data/checkpoints/ on the server, with no external program. Each document is compressed and stored once, named by its SHA-256: a document that is the same in a hundred checkpoints takes the room of one. Each checkpoint is an immutable manifest listing every document of every area with its hash, plus its name, note, kind, author, time, parent and product version, and a seal over all of it.
Everything is checked when it is read. A missing or altered object, or a manifest whose seal does not match, is reported, never skipped: the list shows that checkpoint with a rose marker and the server’s message, and it cannot be compared or reverted to.
A checkpoint is history on the same server. It protects you from engineering mistakes, not from losing the server’s disk: that is what project archives and server backups are for (below).
Kinds and retention
Section titled “Kinds and retention”| Kind (as the Studio shows it) | Taken | Kept |
|---|---|---|
| Named | By an engineer, with a name and a note. Optionally locked. | Always, until an Administrator deletes it. |
| Before deploy | Before every explicit deploy. If it cannot be taken, a warning is logged and the deploy goes on. | Thinned (below). |
| Before revert | Before every revert. If it cannot be taken, the revert is refused. It is the way back. | Thinned. |
| Reverted | Right after a successful revert (“Reverted to FAT”): the new state as a history entry. | Thinned. |
| Daily | Once a day, when the project differs from the newest checkpoint. | Thinned. |
Export (shown as auto-export, named “Export <date>”) |
At every project archive written, by hand or on schedule: the head of the archive. | Thinned. The head of an imported archive is locked. |
Thinning applies to the automatic checkpoints only: all are kept for 7 days, then the newest of each day for 30 days, then the newest of each week. Named and locked checkpoints are never thinned.
- Every one kept
- Newest one kept
- Always kept
- Removed
Read as text
The automatic checkpoints (before deploy, before and after a revert, daily, and the head of a project archive) are thinned by age: every one is kept for 7 days, then the newest of each UTC day up to 30 days, then the newest of each ISO week. Named checkpoints, locked ones and any checkpoint that cannot be read are never thinned.
Time runs left to right: all, then one a day, then one a week. age of the checkpoint, in days
Automatic, not locked
- 1. Kept: by the thinning (newest of the day; newest of the week). Every automatic checkpoint younger than 7 days is kept; from 7 to 30 days the newest of each UTC day; after that the newest of each ISO week.
- 2. Removed: the others of a day or week (older of the day; older of the week). Removed after the next automatic checkpoint, after a revert, or after the daily checkpoint. On an HA cluster the removal is one replicated change; if the cluster refuses it, nothing is removed.
Never thinned
- Named: until an Administrator deletes it (kept)
- Locked: of any kind (kept)
- Cannot be read: shown with a rose marker (kept, reported)
Who may do what
Section titled “Who may do what”| Action | Who |
|---|---|
| List, compare, take a named checkpoint, lock | Lead_Engineer or Administrator |
| Revert | Lead_Engineer or Administrator, with their own e-signature and a reason, always |
| Unlock | Administrator |
| Delete | Administrator, with their own e-signature and a reason; never a locked checkpoint |
| API tokens, the AI co-pilot account | List and compare only. They never change a checkpoint and never sign. |
A signature is given by the signed-in person with a login session, over a meaning the server writes (“Revert the project to checkpoint “FAT” (id, taken … by …); reason: …“). The person who reverts or deletes is the person who signed. On an HA pair every change is refused on the standby: checkpoints are taken and reverted on the primary. The checkpoint history is replicated through the HA cluster store, so a failover keeps it.
What a revert does
Section titled “What a revert does”A revert makes the current project equal to the checkpoint, as a new entry in the history. In order:
- Preview. The server works out what the revert would do now: the documents it writes and removes per area, the safety-relevant changes, and everything listed under the guards below. It also gives a hash of the current project state.
- Signature. The person signs. The signature is bound to the checkpoint, to the state hash they were shown, and to their reason. If the project changes before the revert runs, the signature no longer fits: the revert is refused (
403 signature_refused, or409 state_changedwhen the project changes while the revert is being prepared) and the person reviews the new preview and signs again. - Validation. Every document to write is decoded and checked by its own area’s rules. Any failure refuses the revert, with nothing changed.
- The audit records of the safety-relevant changes, first (see Records written before a revert or restore). Without them, no revert: it is refused with
503 AUDIT_NOT_WRITTEN,CHECKPOINT_REVERT_REFUSEDis journaled, and nothing changes. - The automatic checkpoint of the current project (“Before revert to …”). Without it, no revert.
- Apply. Each document goes through its own area’s apply, as any engineering change does, and through the HA cluster store on a cluster.
- On a failure midway, every document already applied is put back from the automatic checkpoint through the same path. The answer (
500 revert_failed) says what failed, that it was put back, names the automatic checkpoint, and lists any document the rollback could not put back. On a cluster that refuses the change, nothing is applied and the answer is the same. The records written in step 4 are each followed by their_FAILEDrecord (for exampleUPDATE_FAILED), so the trail never shows a change that did not happen. - On success, the “Reverted to …” checkpoint is taken (if it cannot be, the answer says so and the revert stands) and every Studio on the server is told (
PROJECT_REVERTED), so their checkpoint lists refresh.
An area the checkpoint does not hold is left as it is, and listed.
- Service or process
- Check or decision
- Refusal
Read as text
A revert passes four checks in order: who asks and on which node; the reason and the person's signature over the checkpoint, the project state and the reason; the plan of the revert with its validation and guards; the audit records of the safety-relevant changes and the automatic "Before revert to" checkpoint. Any failure refuses the revert with nothing changed. Then the documents are applied; a failure midway is put back from the automatic checkpoint.
Parts
- Who and where (check or decision): Starter or higher, signed in, Lead_Engineer level, no token or AI account, primary with quorum
- Reason, signature (check or decision): a one-line reason; the person's own signature over checkpoint, project state and reason
- Plan of the revert (check or decision): every document validates, the guards, the project unchanged, e-stop and script rules
- Refused (outcome): nothing changed; from the reason on, journaled
- Records, way back (check or decision): audit records of alarm and e-stop changes, then "Before revert to …"
- Apply (service or process): screens held for Deploy; cluster first, then each document
- Reverted (outcome): "Reverted to …", PROJECT_REVERTED
- Failed, put back (outcome): _FAILED records, 500 revert_failed
Connections
- Start → Who and where (next step)
- Who and where → Reason, signature (next step)
- Reason, signature → Plan of the revert (next step)
- Who and where → Refused (refusal): no. Refused with 403 edition_required on Free, 401 when not signed in, 403 below Lead_Engineer or for an API token or the AI co-pilot account, and refused on an HA standby or without quorum. These refusals are not journaled.
- Reason, signature → Refused (refusal): no. From here on every refusal is journaled as CHECKPOINT_REVERT_REFUSED. Refused with 400 reason_required, 403 signature_required or signature_refused, or 503 AUDIT_NOT_WRITTEN. A project that changed after the person signed no longer matches the signature and is refused here.
- Plan of the revert → Refused (refusal): no. Refused with 422 refused when a document does not validate or the checkpoint holds an area this server does not have, 409 state_changed when the project changed meanwhile, 403 when a remote session would move the plant e-stop signal or a script needs the screen script right, 409 estop_signal_active, or 422 estop_tag_invalid.
- Plan of the revert → Records, way back (next step): yes. The guards are part of the plan: a channel the revert creates or whose endpoint changes is written disabled, project safety settings and server file roots are kept when the checkpoint has weaker ones, built-in alarms are never changed.
- Records, way back → Refused (refusal): no. A record that cannot be written refuses the revert with 503 AUDIT_NOT_WRITTEN; without the automatic checkpoint, or when the screens cannot be held for Deploy, the revert is refused too, and the records already written are followed by their _FAILED records. Nothing is applied.
- Records, way back → Apply (next step): yes
- Apply → Reverted (next step). On success the "Reverted to" checkpoint is taken (a failure to take it is only reported), the automatic checkpoints are thinned, CHECKPOINT_REVERTED is journaled and every Studio is told with PROJECT_REVERTED.
- Apply → Failed, put back (next step): fails midway. The documents already applied are put back, the records are followed by their _FAILED records, CHECKPOINT_REVERT_FAILED is journaled and the answer is 500 revert_failed with the report. The report counts rollback errors: the rollback can be incomplete. On HA, a cluster that refuses the commit applies nothing and also answers revert_failed.
Records written before a revert or restore
Section titled “Records written before a revert or restore”A revert, and the start-up apply of a restored server backup, change alarms and the plant e-stop signal without anyone editing them one by one. So before anything is taken or applied, the server writes the same audit records as if a person had made each change by hand:
| What changes | Record (category, action) | What it holds |
|---|---|---|
| Each alarm definition added, changed or removed | ALARM CREATE, ALARM UPDATE, ALARM DELETE |
the definition before and after and the SHA-256 of each |
| The alarm classes document | ALARM_CLASSES CREATE, UPDATE or DELETE |
both documents and the SHA-256 of each |
| The plant e-stop signal tag of a project | PROJECT PLANT_ESTOP_TAG |
the old and new tag, and whether the live signal moves |
- The reason names the source: “checkpoint revert to checkpoint
<id>…” or “server backup restore of …”. A revert is recorded as the signed-in person who reverts; a backup restore applied at start-up assystem. - Unchanged definitions get no record, and the built-in safety and system alarms are never part of a revert or a restore.
- A record that cannot be written refuses the whole change, with nothing applied: a revert answers
503 AUDIT_NOT_WRITTENand journalsCHECKPOINT_REVERT_REFUSED; a backup restore waits, its marker kept, and is tried again every few seconds until the trail can be written (the server log says “restored project waiting to be applied”). - A revert or restore that fails after its records follows each of them with its
_FAILEDrecord.
Before this release, a revert or restore changed alarm definitions, alarm classes and the e-stop tag with no record of each change, only the overall CHECKPOINT_REVERTED or PROJECT_RESTORED.
Why a revert is safe
Section titled “Why a revert is safe”A revert changes running alarms, driver behaviour and authorization settings. It is therefore guarded:
- Driver channels are never started by a revert. A channel the revert creates, or whose endpoint changes (its protocol, any connection setting such as host or port, or a device station), is written disabled. A person checks it and enables it on the Drivers page. A channel whose endpoint is unchanged keeps its current enabled state, whatever the checkpoint says.
- Safety settings are never lowered. Require e-signature to deploy, Live editing off, Review before deploy and its approver level, and Block deploy on lint errors keep their current value when the checkpoint has a weaker one, for every project that exists now and in the checkpoint; the answer lists each one kept. Server file roots are never widened.
- Built-in safety and system alarms are never changed or removed. They are not part of a checkpoint.
- Screens reach operators only with an explicit Deploy. Every screen and project the revert writes or removes is held before anything is applied, even with live editing on. The operator runtime keeps serving the last deployed version until a person deploys, with the deploy’s own checks, review and signature. Deployed manifests are kept as they are.
- The plant e-stop signal tag goes through its own validation. A revert that would move the signal while it is active, or onto a tag the reverted driver configuration maps to a channel, is refused before anything changes.
Compare
Section titled “Compare”Any checkpoint can be compared with another, or with the current project. The answer lists, per area, the documents added, changed and removed, and flags the safety-relevant changes, with the before and after values where they are simple: alarm limits, priorities, conditions and delays; alarms and alarm classes added or removed; driver channel endpoints, enabled states, channels added or removed; tag mapping addresses and data types, scaling and engineering ranges, targets, write access, write ranges and e-signature settings; eaxTags write access, write ranges and e-signature settings; screen command objects, interlocks and access levels; project safety settings; the plant e-stop tag; server file roots.
Archives and backups
Section titled “Archives and backups”Checkpoints protect against engineering mistakes; they live on the server’s own disk. Two kinds of file take the project, and more, off it:
Project archive (.eaxproject) |
Server backup (.eaxbackup) |
|
|---|---|---|
| Holds | The current project as a checkpoint, with every checkpoint of the history (optional for Export project…, always for the scheduled archive). | The project and its history, plus users, roles and permissions, the audit trails (the audit trail as a checked copy of audit.duckdb, Starter and up) and the alarm history. A backup made before the audit trail database (with audit/audit_ledger.json) is refused by this release’s restore. |
| Never holds | Users, passwords, API tokens, the licence, keys, historian data, the audit trail, the alarm history. | The licence, keys (driver secrets, NKeys, TLS), API tokens and sessions, and the historian (it has its own archive: eaxscada historian-backup and historian-restore). |
| Made | Export project… (Lead_Engineer), or daily on schedule. | Run now (Administrator), or weekly on schedule. |
| Protected by | A SHA-256 for every entry, checked before anything is stored. | The same, and encryption to the server’s recovery key. |
| Brought back | Import archive… adds its checkpoints; a signed revert to its head changes the project. | Only with the command line, on a stopped server (eaxscada restore … --recovery-key …, a dry run, then --confirm). Never from the browser: it replaces the users. |
The recovery key. When an Administrator creates it, the server makes a key pair and keeps only the public key. The private key file is handed to that person once, as a download, and is not kept anywhere on the server: the Studio offers it from memory, never stores it in the browser, and forgets it when its dialog closes, which needs the person to confirm they stored the key away from the server. Each server backup is encrypted to the public key with a fresh file key (X25519 and HKDF-SHA256 wrap it; XChaCha20-Poly1305 encrypts the file in authenticated chunks). Scheduled backups therefore run without any stored secret, and nobody can read a backup without the key file, the server included. After a rotation, older backups need the previous key file: keep each key file as long as the backups made with it.
The 3-2-1 strategy (both schedules ship turned off and with no destination: an Administrator sets the destination folder and turns them on on the Backups tab; the times and counts below are the defaults then):
- The server’s own history: an automatic checkpoint before every deploy and revert, and a daily one when anything changed. Fast undo, on the same disk.
- The destination folder, ideally a network share: a project archive every day at 02:00 (keep 14) and an encrypted server backup every Sunday at 03:00 (keep 8), each written to a temporary file, renamed, then read back and verified against its SHA-256, which a sidecar file next to it records.
- An off-site copy of that share, made by your usual IT backup. The recovery key file stays offline, apart from all three.
- Product
- Data store
- External system
- File or document
- Trust boundary
- Data or telemetry
- Configuration or deploy
- Authentication
Read as text
The eaxScada server keeps its checkpoints on its own disk. When an Administrator sets a destination folder and turns the schedules on, it writes a project archive every day and an encrypted server backup every week there, each verified and described by a SHA-256 sidecar. Copying that folder off site is the job of the site's own IT backup, not of eaxScada. The recovery key file, needed to restore a server backup, is kept offline, apart from all of them.
Parts
- eaxScada server (trust boundary)
- Checkpoints (data store, inside eaxScada server): data/checkpoints: named, before deploy and revert, daily
- eaxScada server (product, inside eaxScada server): project, users, audit trail, alarm history
- Project archive (file or document, inside Destination folder, ideally a network share): .eaxproject, daily at 02:00, keep 14, SHA-256 sidecar
- Server backup (file or document, inside Destination folder, ideally a network share): .eaxbackup, encrypted, Sunday 03:00, keep 8, SHA-256 sidecar
- Off-site copy (external system): your own IT backup of the share
- Recovery key file (file or document): private key, kept offline
Connections
- Checkpoints → Project archive (data or telemetry): daily. When the schedule is on, a project archive of the current project with its checkpoints is written every day, read back and verified; the 14 newest are kept. Export project in the Studio makes one at any time.
- Project archive → Checkpoints (data or telemetry): Import archive…. Import archive in the Studio adds the archive's checkpoints and does not change the project; a signed revert to its head does.
- eaxScada server → Server backup (data or telemetry): weekly. When the schedule is on and a recovery key is set up, an encrypted server backup is written every week, read back and verified; the 8 newest are kept.
- Server backup → eaxScada server (data or telemetry): eaxscada restore. A server backup comes back only through the command eaxscada restore on a stopped server, with the recovery key file: a dry run first, then --confirm. Never from the browser.
- eaxScada server → Recovery key file (configuration or deploy): downloaded once. The server makes the key pair, keeps only the public key and hands the private key file to the Administrator once.
- Recovery key file → eaxScada server (authentication): needed to restore. Nobody can read a server backup without the key file, the server included.
- Server backup → Off-site copy (data or telemetry): copied by your IT, not by eaxScada. eaxScada makes no off-site copy. Copy the destination folder, archives and backups, with the site's own backup.
A scheduled kind whose last run failed, or that has not succeeded for one and a half periods, raises the system alarm ALM-SYS-BACKUP (“Scheduled backup failed or overdue”), and the Backups tab shows the problem. On an HA pair, backups run on the primary; the backup settings, the recovery public key and the last runs are replicated through the HA cluster store, so the new primary after a failover keeps them.
Every change is in the operations audit trail:
| Event | When |
|---|---|
CHECKPOINT_CREATED |
A named or automatic checkpoint was taken (its id, kind, document count). |
CHECKPOINT_REVERTED |
A revert succeeded: the signature and its meaning, the automatic checkpoint taken first, the documents written and removed, the channels left disabled, the safety settings kept, the documents held for Deploy, the “Reverted to” checkpoint. |
CHECKPOINT_REVERT_REFUSED |
A revert was refused before anything changed (no or a wrong signature, no reason, the plant e-stop rule, a validation failure, or the records of its alarm, alarm class or e-stop changes could not be written: 503 AUDIT_NOT_WRITTEN). |
ALARM CREATE / UPDATE / DELETE, ALARM_CLASSES …, PROJECT PLANT_ESTOP_TAG |
Written before a revert or a backup restore applies anything, one per change (above); followed by …_FAILED when the revert or restore then does not happen. |
CHECKPOINT_REVERT_FAILED |
A revert failed midway and was put back from the automatic checkpoint. |
CHECKPOINT_LOCKED, CHECKPOINT_UNLOCKED |
A checkpoint was locked or unlocked. |
CHECKPOINT_DELETED |
A checkpoint was deleted, with the signature and its meaning. |
CHECKPOINT_EXPORTED |
A project archive was exported: the head checkpoint, the number of checkpoints, the size and SHA-256. |
CHECKPOINT_IMPORTED, CHECKPOINT_IMPORT_REFUSED |
An archive was imported (checkpoints added and already present; the project unchanged), or refused with the reason. |
BACKUP_SETTINGS_CHANGED |
The backup settings were changed, e-signed. |
BACKUP_RECOVERY_KEY_CREATED, BACKUP_RECOVERY_KEY_ROTATED |
The recovery key was made or replaced, e-signed; the private key was handed to the signer and not kept. |
BACKUP_WRITTEN, BACKUP_FAILED |
A scheduled or manual backup was written and verified (file, size, SHA-256, files removed by retention), or failed. |
A signature refused because the person may not sign is recorded in the access audit trail (ESIG_OBJECT_TICKET_REJECTED).