gunzip, k8up, ‘unexpected end of file’


When using the k8up annotations for a postgresql backup with : /bin/bash -c 'pg_dumpall --clean | gzip --stdout

do not finish correctly, and as a result the gunzip complains about "unexpected end of file"


There is a workaround by first saving the file and then sending it to the standard output with /bin/bash -c 'pg_dumpall --clean | gzip -c > /tmp/backup.gz
      && cat /tmp/backup.gz && rm /tmp/backup.gz'

Thanks Simon Beck for the suggestion