Repository Presets
ZSTD Level 3 vs LZ4 over SSH Transfer Pipe Sizing
Choose between lz4 (485 MB/s) and zstd,3 (265 MB/s) based on source CPU cores, WAN upload Mbps, and InterServer Slice TB capacity.
265 MB/s zstd,3 · 1.78x Ratio · SSH Compression=no
Matching Codec Speed to Your Network Bottleneck
If your VPS uplink is 1 Gbps (125 MB/s), any codec faster than 125 MB/s per thread leaves spare CPU headroom while shrinking remote slice usage. At 265 MB/s per core, zstd,3 saturates a 1 Gbps pipe while cutting InterServer Slice costs by nearly half.
Upgrading Codecs Without Re-Initializing Repos
Changing compression: zstd,3 in config.yaml applies cleanly to all new chunks on the next run; existing lz4 chunks remain readable without rewriting the repository.
Measured Thresholds & Borgmatic Configuration
| Scenario | Optimal Borg Codec | Why It Wins |
|---|---|---|
| 1 Gbps Fiber + Modern EPYC VPS | zstd,3 | 265 MB/s easily saturates 125 MB/s NIC while saving ~44% slice space |
| 100 Mbps Residential / Branch WAN | zstd,6 | Compresses ~1.94x at 128 MB/s, doubling effective WAN throughput |
| Low-CPU ARM / 1 vCPU Edge Node | lz4 | Minimal CPU load at 485 MB/s when storage slice space is plentiful |
| SSH Transport Setting | -o Compression=no | Eliminates double CPU burn when Borg already compresses chunks |