PostgreSQL Continuous pgBackRest & ZFS Archive: EgressZero Cross-Cloud PITR Dossier
Write-intensive OLTP PostgreSQL clusters generate hundreds of gigabytes of Write-Ahead Logs (WAL) per day. Retaining 35-day Point-in-Time Recovery (PITR) windows on AWS RDS backup storage plus cross-region S3 replication adds $650–$1,800/mo in our EgressZero equations—whereas streaming Zstd-compressed `pgBackRest` archives to an independent ZFS Storage Slice cuts retention spend by ~90%.
EgressZero FinOps Note: Independent-ASN PITR vaults survive even catastrophic cloud IAM account lockouts.
EGRESSZERO SIZING VERDICTFor an 8 TB fintech PostgreSQL cluster running daily DR clone verification, EgressZero calculates $14,160/yr saved by pairing Zstd WAL shipping with a $60.00/mo InterServer 10 TB ZFS slice instead of $1,240/mo in cross-region cloud backup charges.
EgressZero pgBackRest Zstd-Compressed Offsite Repository Configuration
# /etc/pgbackrest/pgbackrest.conf
[global]
repo1-type=s3
repo1-s3-endpoint=s3-vault.yourdomain.internal
repo1-s3-bucket=pg17-pitr-prod
repo1-cipher-type=aes-256-cbc
repo1-retention-full=4
repo1-retention-diff=14
compress-type=zst
compress-level=3
process-max=8
archive-async=y
EgressZero Production Cutover Checklist for POSTGRES
- Enable `archive-async=y` with a local NVMe `spool-path` so transient WAN jitter never stalls PostgreSQL `archive_command` WAL recycling.
- Tune receiving OpenZFS pools with `recordsize=128K` and `compression=lz4`, then automate nightly `pgbackrest --type=incr` + restore verification.
- Host the PITR vault under a separate provider and billing credential from primary compute for true disaster isolation.
EgressZero Scale-by-Scale TCO Ledger (postgres-wal-archive)
| Dataset & Monthly Egress Tier | Metered Cloud Bill | Matched Fixed-Pipe Host | 12-Month Net Retained |
|---|---|---|---|
| 2 TB OLTP DB + 14-Day WAL Stream | $395 / mo (RDS Backup + Cross-Region) | $18.00 / mo (InterServer 3TB Slice) | $4,524 / yr |
| 8 TB FinTech DB + Daily DR Clone Verification | $1,240 / mo | $60.00 / mo (InterServer 10TB Slice) | $14,160 / yr |
| 18 TB Analytics Cluster + Multi-Region Standby | $2,610 / mo | $119.00 / mo (Dedicated 20TB ZFS) | $29,892 / yr |
EgressZero Repatriation Thresholds for postgres-wal-archive
Choose Hyperscaler S3 / Managed CDN (EgressZero Rule) If:
- Your RDS instance is under 100 GB (covered by free 1:1 automated backup quota) and requires zero cross-provider survivability.
Choose Unmetered / Fixed-Pipe VPS (EgressZero Rule) If:
- Database size exceeds 1 TB, daily WAL churn is high, or QA/compliance requires spinning up frequent full-size staging clones at $0 egress.
EgressZero Engineering FAQ: postgres-wal-archive
How does EgressZero account for primary EC2 outbound egress when shipping WAL offsite?
Primary cloud egress applies only once on the Zstd-compressed WAL stream (typically 3x–4x smaller than raw 16 MB segments), whereas all 30-day retention, differential merges, QA staging clones, and full DR test restores execute at $0 egress on the fixed-pipe vault.
Why do EgressZero database blueprints pair PostgreSQL PITR with OpenZFS copy-on-write slices?
OpenZFS instant snapshots (`zfs clone`) let engineering teams provision an isolated, writable 5 TB staging PostgreSQL instance in under 2 seconds without duplicating underlying storage blocks.