I gzip a folder, transfer it to a remote location and then extract it to a folder. The problem is that this machine is a little unreliable and sometimes writes don't succeed and there can be zero-byte files or corrupted files (I verified the archive was correct and subsequent extractions worked fine).
I know that gzip files have CRC info in them, so I'm wondering if there's an easy way to do this:
- Download gzip
- Extract gzip
- Compare files on disk to gzip CRCs to verify extraction succeeded