Skip to content

Keep history

Want the last five versions of an output? Put this in the server’s plotsrv.yml:

storage-settings:
  enabled: true
  default_keep_last: 5

Start or restart the server with that file:

plotsrv serve --config plotsrv.yml

Publish to it as normal. Once snapshots exist, use the bottom history controls to select an earlier version. Live returns to the current output.

Without storage, live views belong to the server process and disappear when it stops. Storage is useful history, not a guaranteed archive: writes have size, queue, and retention limits.

Bring views back after a restart

Enabling storage also enables latest-state persistence by default. Restart plotsrv serve with the same config and storage directory to restore accepted stored views. They are labelled as restored while waiting for new data.

plotsrv run normally restores only IDs discovered for that project. For a combined server that should restore all eligible stored views, set:

storage-settings:
  enabled: true
  latest:
    restore_scope: all

A server restricted to an explicit catalogue still enforces that restriction. Restore never makes old data fresh: the original update time remains visible. See restoration rules for the exact scope.

Avoid storing every update

storage-settings:
  enabled: true
  default_keep_last: 5
  default_min_store_interval: 1h

This keeps at most five snapshots per view, with at least an hour between stored snapshots. Latest-state persistence has its own interval; this setting does not stop live publishing or throttle every disk write.

For a noisy view, override its snapshot settings:

storage-settings:
  enabled: true
  views:
    "daily:orders":
      keep_last: 10
      min_store_interval: 30m

Find and compare a version

Use the older/newer controls for nearby snapshots. Open the history timeline to pick a day or find a more distant version. Step between versions to compare them. Historical mode stays labelled until you explicitly return to Live.

Table presentation settings are separate from history. Saving My views keeps filters and plot settings, not the selected snapshot.

An earlier orders table with a historical snapshot label and the History timeline open.

An earlier orders table with a historical snapshot label and the History timeline open.

An earlier stored version. The timeline uses UTC. Click to enlarge.

Keep watched files or stream runs

Watched-file storage is off by default even when ordinary storage is enabled. To opt a watch in:

storage-settings:
  enabled: true
  views:
    "watch:job.log":
      watch_enabled: true

Use the actual view ID shown by your watch. File-backed and unsupported payloads have additional restrictions; see Files and watching.

Streams keep compact session history by default when storage is enabled. Use the Run selector to open a retained session. Raw log records remain opt-in, so an old run can have useful insights with no saved table rows. See stream retention before treating this as a log archive.

Inspect the store

plotsrv store --config plotsrv.yml stats
plotsrv store --config plotsrv.yml list

Files live under .plotsrv/store by default, relative to the resolved config location. Keep this directory on persistent storage if the server runs in a container or disposable working directory.

For deletion commands, retention ceilings, and failure behaviour, see Storage and history reference.