Skip to main content
STALWART JMAPRELAY FOUNDRY // JMAP + IMAP + SMTP RUST MAIL SIZING STUDIO ROCKSDB + TANTIVY FTS | VULTR PORT 25 PTR | INTERSERVER STORAGE SLICE | 2026-10-29
StalwartMailVPS
StalwartMailVPS Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Mail Server Presets

Zero-Downtime RocksDB Atomic Checkpoints & S3 Sync

Back up live RocksDB metadata and Tantivy indexes safely using hard-linked atomic snapshots without stopping SMTP or JMAP traffic.

Zero Downtime · Hard-Link SSTables · Offsite Restic/S3

Zero-Downtime RocksDB Atomic Checkpoints & S3 Sync
Mail engineering baseline verified 2026-10-29 by JMAPRelay Foundry.

Why Copying a Live RocksDB Directory Corrupts SSTables

While Stalwart serves live JMAP updates and SMTP deliveries, RocksDB constantly compacts SSTables and appends to write-ahead logs. Running raw rsync across a live directory captures inconsistent manifests that fail checksum verification on restore.

Using Atomic Checkpoints and Immutable Blob Sync

Trigger a RocksDB checkpoint or ZFS/LVM snapshot to freeze a consistent metadata point-in-time in milliseconds, then stream the frozen snapshot and immutable zstd blobs offsite.

Measured Thresholds & Stalwart Configuration Parameters

Backup StepSafe MechanismWhy Naive tar/rsync Fails
Live RocksDB CaptureRocksDB Checkpoint / WAL flushNaive tar of live .sst/.log files risks torn state
Blob SynchronizationIncremental rclone / restic syncContent-addressed blobs are immutable once written
Restore VerificationQuarterly staging replay testConfirms Tantivy index rebuild and DKIM key permissions
Offsite TargetInterServer 1 TB or S3 BucketIsolates backups from primary Vultr NVMe host failure
Zero Downtime · Hard-Link SSTables · Offsite Restic/S3 Deploy Vultr NVMeInterServer Slice