mirror of
https://github.com/hanzoai/migration.git
synced 2026-10-30 18:27:53 +00:00
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.