Questions tagged [gzip]

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms, which, at the time, limited the usability of compress and other popular archivers.

"Gzip" is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a time stamp
  • optional extra headers, such as the original file name
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

source: wikipedia

334 questions
4
votes
3 answers

gunzip: invalid compressed data--format violated

Problem definition: I transferred a tar.gz file from a Linux machine to a Windows partition.The Windows partition has mounted with the Linux server as cifs. OS : Red Hat Enterprise Linux Server release 5 Symptom: After the copy process is…
Arunjith
  • 108
  • 1
  • 1
  • 7
4
votes
4 answers

how to copy & gzip files individually over ssh

I'd like to transfer a directory with uncompressed files over using ssh, gzip'ing them individually along the way. Can anyone recommend a simple oneliner to achieve this? eg. fileA.ext -> ssh/pipe -> fileA.ext.gz I've been piping tar over ssh with…
grojo
  • 429
  • 1
  • 7
  • 18
4
votes
1 answer

How to change the HTTP GZIP Compression Level for Dynamic Content in IIS7?

I would like to change the HTTP GZIP compression level in IIS7 from 0 to 4 as mentioned in these…
Techboy
  • 1,550
  • 7
  • 31
  • 49
4
votes
2 answers

How GZipped contents are transfered on the web?

I heard that static contents like CSS and JavaScript can be better delivered in GZip format. And Content Developer Network (CDN) always does so. However I don't understand how the format works. First when I tried making a gzipped file via…
PJ.
  • 3,017
  • 5
  • 21
  • 15
4
votes
1 answer

Compress old emails with dovecot

How can I configure dovecot to compress/archive old emails (say 6 months old) with the users still being able to read them, to save some precious space on the server?
Tofandel
  • 191
  • 8
3
votes
2 answers

Copying large snapshot images to remote storage Linux

I need to copy snapshots of virtual machines running on Proxmox (KVM) servers and copy the snapshots to offsite storage. Most snapshots are a few gb, but some are rather large, up to 200gb. I would prefer to compress and copy the snapshots in one…
Dokbua
  • 1,072
  • 1
  • 10
  • 19
3
votes
1 answer

Nginx image display issue after optimization

I made some optimizations using gtmetrix to improve web site performance. Like enabling gzip compression etc.. When I try to test site using online services like browserling.com images are not dislayed. https://programlama.tk When I try to connect…
user495428
3
votes
1 answer

Terminate Gzip compression at AWS ELB classic load balancer

We have a set of servers in AWS that are behind an ELB. We are trying to upload data to the server. We want to enable gzip, but the servers themselves use an obscure golang framework that does not have default gzip support to uncompress incoming…
Jason
  • 131
  • 1
  • 4
3
votes
5 answers

Zipping a folder to create tgz file

I have a folder which i want to create tgz file and compute its sha256: The folder is converted to tgz using following command "tar -c -C #{Shellwords.escape dir} #{Shellwords.escape basename} " \ "--owner=0 --group=0 --mtime='2000-01-01…
user93796
  • 31
  • 3
3
votes
2 answers

Nginx not sending gzipped assets when passing trough a load balancer

I have a nginx server acting as load balancer, which delegates requests to other application servers. When I try to request a asset directly to the application server, the asset is served in it's gzipped version, sample: ➜ ~ curl -IH…
3
votes
5 answers

`outputscript | gzip > $file` not overwriting $file

I have an hourly cron script which take some output (a mysql dump), pipes it through gzip, and aims to overwrite a file of the same name. When I run it manually as root the file is overwritten. When it is ran by the cron daemon the filename has ".1"…
Phillip B Oldham
  • 1,026
  • 5
  • 15
  • 24
3
votes
1 answer

Apache returns invalid Content-Length for gzip compressed 204 response

When apache returns a gzip compressed response with 204 response code and empty body server returns invalid header Content-Length: 20 instead of Content-Length: 0. Without gzip compression (without Accept-Encoding header) server returns valid header…
3
votes
3 answers

Corrupt Zip file when downloaded from Apache with Internet Explorer

I have a zip file being served by Apache with mod_gzip compression turned on. Everything is fine when the file is downloaded with Firefox. When downloaded with IE7 the zip file is corrupt. Any suggestions? Do I need to change the mime type for zip…
ejunker
  • 293
  • 5
  • 11
3
votes
4 answers

mysqldump to remote mysql database using gzip

I'm trying to transfer data from one MySQL server to another with gzip compression. What I have so far is: mysqldump -u [user] -p[pwd] --no-create-db --no-create-info [db] [table] | gzip -c | mysql -h [host] -u [user] -p[pwd] Of course this doesn't…
user3571061
  • 31
  • 1
  • 3
3
votes
1 answer

Tomcat/https: I can see compression is enabled, but file sizes are the same as without compression

I have enabled compression on Tomcat running on my machine. The https response header is showing compression is enabled, but the same amount of data is being transferred with and without compression turned on. Without compression: Status OK Code …