Repository & SSH Tuning
Tuning InterServer SSH Pipe & Disabling Double SSH Compression
Eliminate wasted SSH zlib overhead, pin Ed25519 keys, and tune ServerAliveInterval for uninterrupted multi-terabyte Borg streams.
Compression=no · +28% CPU Saved · Ed25519 Key
Why ssh://borg@slice Beats SFTP Mounts
Mounting a remote slice over SSHFS or SFTP forces every Borg index seek and segment compaction read across the WAN. Using native ssh:// protocol invokes borg serve on the InterServer Storage Slice so hashing and compaction stay local.
Pre-Populating known_hosts for Systemd
Always run one manual borgmatic info test as root before enabling borgmatic.timer so the slice's Ed25519 host fingerprint is pinned in /root/.ssh/known_hosts.
Measured Thresholds & Borgmatic Configuration
| SSH Flag | Recommended Setting | Effect on Borg Pipe |
|---|---|---|
| Compression=no | Disable OpenSSH zlib stream | Prevents double-compressing zstd/lz4 chunks; cuts client CPU ~28% |
| IdentityFile | /root/.ssh/id_ed25519_borg | Fast Ed25519 handshake with dedicated per-repo key |
| ServerAliveInterval | 30 seconds (CountMax=3) | Detects silent NAT/ISP drops in 90s and preserves remote lock hygiene |
| BatchMode=yes | Non-interactive fail-fast | Prevents hung password prompts inside headless systemd runs |