All articles
Back to Developers
Operations

Storage, updates & backups

Separate data volumes, the private state volume, schema versioning, consistent backups and the current A/B update boundary.

7 min read Updated: 20 October 2026
Markdown

Volumes

VolumeMountContentsLifecycle
System slot A/B/ (read-only), /rumahlOS and rumahl servicesReplaced by an update
home/homeUser dataPersistent, backed up
apps/appsInstalled apps and assetsPersistent, backed up
state/var/lib/rumahlDatabases and secretsPersistent, private, backed up

The state volume is private

The state volume is never mounted, symlinked or bind-mounted into a user- or app-visible path. Only the platform service mounts it, owner-only (0700). The path/grant policy denies every access and apps never receive a handle into it.

Schema safety

  • Every database records its schema version in PRAGMA user_version.
  • Startup stamps a fresh database and refuses one written by a newer binary.
  • A newer slot migrates in a transaction and bumps the version.
  • An older slot refuses to start instead of corrupting shared state.
  • Before a slot switch, the service checkpoints WAL and fsyncs.
  • Backups use the SQLite online backup API, never a live file copy.

Update boundary

Data safety and slot execution are deliberately split. The volumes are already separate, schema versions are enforced, and consistent snapshots are implemented. The inactive-slot writer, signature verification, boot artifact, rollback policy and update activation are still deferred.

Do not document updates as complete

Signed updates and boot verification are separate milestones. The current contract only guarantees that update execution must never touch data volumes and must take a backup before the first migration in a new slot.

Need more context? Read the source or open a discussion with the project.

On this page