Add an inbuxa backup command for a single-machine install #62

Merged
jcoffey-dev merged 1 commits from feat/backup into main 2026-11-13 15:42:40 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 3040951fc7 Add an inbuxa backup command for a single-machine install
ci / test (pull_request) Successful in 55s
backup archives this machine's mail server -- its configuration and its
data -- to <dir>/backups, whether the server runs in a container or on
the host. It stops the server for a consistent archive and starts it
again, a brief outage, so without --yes it only says what it would do.

BackupKind, a pure classifier over the state, decides whether there is
anything here to back up and refuses on a clustered node, whose real
store lives in the cluster's PostgreSQL and S3 and is backed up there; a
local archive would hold only its configuration. The container path
reuses the existing read-only volume archiver; the host path tars the
server directory. Each archive is verified as a readable, non-empty
gzip tar before the command reports success.

Restoring from a backup is deliberately left for later: it overwrites a
live store, so it needs its own careful design and testing.
2026-11-13 08:39:24 -07:00