Why does "tar -czh" produce a corrupt archive but "tar -ch | gzip" work fine?
exec-out mixed up stdout and stderr
in 1st example the tar stderr message &quot;removing leading '/' from member names&quot; is redirected into target file
in 2nd example only tar stdout is piped to gzip
to avoid broken archive silent stderr see linked duplicate