Skip to content

StoreBackupReport

Defined in: packages/client/src/export-store.ts:68

A live store backup (ADR-0035): the whole datadir as a PGlite-restorable tarball, journal and overlay included. checkpoint/dump are the only phases — a store backup is a CHECKPOINT + dumpDataDir, no clone. Slice-1 shape, kept unchanged (the union is additive).

byteLength: number

Defined in: packages/client/src/export-store.ts:54

The artefact’s byte length — the size the caller downloads / persists.

ExportReportCommon.byteLength


compression: "none" | "gzip"

Defined in: packages/client/src/export-store.ts:74

The compression actually applied to the tarball (resolved from "auto" at dump time).


diagnostics: MutationDiagnostics

Defined in: packages/client/src/export-store.ts:60

The MutationDiagnostics snapshot at export time — the journal state captured alongside the artefact (for the store backup, the very journal that travels INSIDE the tarball; for the diagnostic dump, the live store’s journal at dump time, whose rows the SQL also carries).

ExportReportCommon.diagnostics


kind: "store-backup"

Defined in: packages/client/src/export-store.ts:70

Which export produced this artefact.


phases: object

Defined in: packages/client/src/export-store.ts:75

checkpointMs: number

CHECKPOINT wall — flushing dirty buffers to the datadir before it is tarred, serialised behind engine work.

checkpointStartedAtMs: number

Offset from export start when the CHECKPOINT began.

dumpMs: number

dumpDataDir wall — reading the datadir out and assembling (optionally compressing) the tarball.

dumpStartedAtMs: number

Offset from export start when dumpDataDir began.


reportVersion: 1

Defined in: packages/client/src/export-store.ts:48

ExportReportCommon.reportVersion


scope: "whole-store"

Defined in: packages/client/src/export-store.ts:72

What the artefact covers. A store backup is always the whole store, journal and overlay included.


startedAt: number

Defined in: packages/client/src/export-store.ts:50

Epoch anchor (Date.now()) at export start; every other duration/offset is monotonic relative to it.

ExportReportCommon.startedAt


totalMs: number

Defined in: packages/client/src/export-store.ts:52

Export start → artefact ready.

ExportReportCommon.totalMs