Storage, updates & backups
Separate data volumes, the private state volume, schema versioning, consistent backups and the current A/B update boundary.
Volumes
| Volume | Mount | Contents | Lifecycle |
|---|---|---|---|
| System slot A/B | / (read-only), /rumahl | OS and rumahl services | Replaced by an update |
| home | /home | User data | Persistent, backed up |
| apps | /apps | Installed apps and assets | Persistent, backed up |
| state | /var/lib/rumahl | Databases and secrets | Persistent, 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.
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.