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
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 Step | Safe Mechanism | Why Naive tar/rsync Fails |
|---|---|---|
| Live RocksDB Capture | RocksDB Checkpoint / WAL flush | Naive tar of live .sst/.log files risks torn state |
| Blob Synchronization | Incremental rclone / restic sync | Content-addressed blobs are immutable once written |
| Restore Verification | Quarterly staging replay test | Confirms Tantivy index rebuild and DKIM key permissions |
| Offsite Target | InterServer 1 TB or S3 Bucket | Isolates backups from primary Vultr NVMe host failure |