Files
zeekay aa543d6d7d scripts: pg-fetch-db.sh — robust single-DB export over a flaky kube-exec path
The DOKS apiserver exec/cp stream intermittently truncates large transfers
(unexpected EOF) — kms (884MB→59MB gz) failed mid-stream where hanzo_cloud
(818MB gz) happened to succeed. This dumps+gzips ENTIRELY in-pod, splits
into 8MB chunks, and pulls each with a per-chunk md5-verified retry loop,
then verifies the whole-file md5 before accepting. gzip -t already catches
truncation on the streaming path (pg-export.sh), so this is the fallback
for any DB that fails there.
2026-07-01 10:29:17 -07:00
..