mirror of
https://github.com/TronoSfera/backupy-agent.git
synced 2026-05-18 18:13:30 +03:00
MinIO (and stricter S3 endpoints) reject presigned PUTs sent with chunked transfer-encoding, returning HTTP 411 'Length Required'. The pipeline could not know the final encrypted size up-front so it streamed the request body with ContentLength=-1. Drain the encrypt stage into a temp file, then issue the PUT with an explicit Content-Length. The dump → compress → encrypt goroutines still overlap because the drain reads from the encrypt pipe; only the upload itself is sequenced after encryption completes. |
||
|---|---|---|
| .. | ||
| agent | ||
| backupy-decrypt | ||