Skip to content

Self-hosting

Backups

Back up the record, the numbers and the files beside the record, your settings, and the config folder that holds your team's token.

View as Markdown

Stop serve and any zerowidth mcp processes, then copy:

  • The record: the file --db names, such as team.db, and team.db-wal if one is there after an unclean stop.

  • Files beside the record: team.db.zone-names.json and the folder team.db.curves/, when present.

  • The numbers: the readings database beside the record, such as team.db.readings.db, or wherever readings points, with the .sources.json file beside the readings.

  • Your settings: zerowidth.json.

  • The config folder: ~/.config/zerowidth, or the folder ZEROWIDTH_CONFIG_DIR names. The folder holds the team token: without the folder, every agent's token stops working on a new server.

To move a record to another server, copy the same files and start serve there.

Checking a record

verify checks every entry in the record and the rules between them.

Terminal
zerowidth verify --db team.db