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.

learn more… | top users | synonyms

0
votes
3answers
1k views

zip does not work for big files

What is the best way to compress a file if it is more than 4 GB in size? I am using the following for last several months. mysqldump --all-databases | zip > mybackup.zip Today I am got an ...
-1
votes
1answer
730 views

Grade F on Compress but gzip is running

i got a litte problem with gzip YSlow says: Grade F on Compress components with gzip There are 5 plain text components that should be sent compressed Page Speed says: Enable ...
1
vote
1answer
478 views

Why does tar -c dir | pigz > /mnt/nfs/dir.tgz use network, then cpu in cycles instead of both at once (with one bottlenecking)

I want to transfer a multi-terabyte directory to an nfs mounted directory most efficiently over a 1Gbit network (probably the limiting factor) 3 options - tar and compress in place, then copy copy, ...
9
votes
4answers
9k views

Need help with some IIS7 web.config compression settings

I'm trying to configure my IIS7 compression settings in my web.config file. I'm trying to enable HTTP 1.0 requests to be gzip. MSDN has all the info about it here. Is it possible to have this config ...
1
vote
3answers
5k views

How to use GZip to create a .zip file

Is it possible to use GZip to create a .zip file? I've been Googling and can't find anything that leads me to believe this is possible
1
vote
2answers
447 views

`mod_deflate` is returning `Content-Encoding: gzip`. Is that normal?

mod_deflate is configured on my Apache 2.2 web server. But my response headers are showing gzip as the Content-Encoding instead of deflate: HTTP/1.1 200 OK Date: Mon, 26 Sep 2011 22:26:11 GMT ...
0
votes
2answers
403 views

CRC Failed, File is broken, using php system command to tar a directory

Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I ...
0
votes
2answers
515 views

IIS6 wont compress js and css

So recently I configured IIS6 to compress files I now have most files compressing apart from my JavaScript and CSS files. Does anyone have an idea what maybe causing them not to be compressed. I know ...
4
votes
5answers
3k views

Enabling gzip compression in IIS and having it take effect

We've enabled Gzip compression on the server in IIS (IIS6). We've run iisreset. It just doesn't want to take effect. We had this before on another server, and after a little while, it just started ...
1
vote
2answers
270 views

What reasons (if any) are there to *not* enable gzip compression for your web server?

Specifically I am working with IIS7, in case there are platform specific reasons, but I am curious in general. I know gzip compression is more CPU intensive for both the server and the client, but it ...
1
vote
4answers
5k views

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 ...
1
vote
1answer
752 views

Turn off gzip compression for one virtual host

I'm running into a problem where I think PHP deprecation errors are causing the headers to be malformed, causing a 330 error. If I disable error reporting for E_DEPRECATION, the error disappears, so ...
0
votes
3answers
130 views

Uncompressing gzip file

I have compressed a folder using following command: tar czvf arch.tar.gz dirname/ When I try to uncompress it using following command tar xvfz arch.tar.gz then it uncompress folder but contents ...
5
votes
1answer
453 views

Apache deflates .xml.gz files

I noticed an error in google webmaster tools regarding a gzipped version of a sitemap. Turns out the sitemap.xml.gz file is gzipped twice: one upon creation (as it should be) and another time when ...
0
votes
2answers
9k views

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 ...
6
votes
1answer
8k views

How can I enable GZIP compression in Jetty?

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
1
vote
1answer
469 views

making apache serve unzipped content from zipped files

I need to serve a bunch of gzipped MIDI files from an Apache server. The catch is that when the user requests them, the response should come back with a "audio/midi" content-type header and not a gzip ...
-1
votes
1answer
1k views

Unable to decompress a .gz file on centos. gunzip: filename.tar.gz: not in gzip format

I am trying to install the latest apache ant to centos. I did as follows: wget http://ant.apache.org/bindownload.cgi/apache-ant-1.8.2-bin.tar.gz gzip -d apache-ant-1.8.2-bin.tar.gz and I get the ...
1
vote
2answers
102 views

Is it possible to store MySQL data as comressed?

Is it possible to store MySQL data compressed? Option for that in MySQL?
0
votes
1answer
1k views

Gzip Compression IIS7 with Proxy Not working

I have seen posts with GZIP compression not working on IIS7, but none seemed to help in my case. I have a proxy server that sends the request to my website on IIS7. I have the following in web.config ...
3
votes
2answers
428 views

Erratic gzip compression on IIS7.5

This is best demonstrated when we just try to request a single CSS file from our IIS server. Sometimes we get the whole uncompressed file back. We'll wait 5 seconds and refresh, then the CSS file is ...
0
votes
1answer
466 views

gzip, deflate are not showing while accessing from a proxy

We enabled gzip and deflate in our local server and it shows correctly in phpinfo like shown below HTTP_ACCEPT_ENCODING gzip,deflate,sdch We installed the same in our client's server and there was ...
3
votes
2answers
2k views

How can I disable gzip in apache on Ubuntu 10.10?

I'm trying to figure out how to disable or uninstall gzip from my Ubuntu server. This is to support a package of buggy software that breaks when it's trying to do a crazy call to a css file (don't ...
1
vote
1answer
131 views

gzipped tar archive file paths

I am creating a tar.gz file containing some files and folders as follows: /bin/tar cfz /usr/local/backups/mybackup-${DATENAME}.tar.gz /usr/local/backups/db-${DATENAME}.sql.gz ...
0
votes
3answers
216 views

When I extract .tar.gz all of the files within the folders have the .gz suffix

I have recently begun using a VPS and am learning linux along the way. I have compressed a folder using tar, then I gzipped it and used scp to send it to my server. When I decompress using tar -zxvf ...
2
votes
1answer
573 views

IIS7 is gzipping files but not serving the gzipped version

By following a number of helpful blog posts I have configured IIS to gzip my static files. I have even enabled Failed Request Tracing and filtered to the 200 status code, and I can see the successful ...
1
vote
1answer
589 views

How to get Apache (on Debian squeeze) to compress JS/CSS

I am running Debian squeeze and cannot get Apache to compress JavaScript or CSS. HTML, however, is being compressed. In the conf files in the sites-enabled dir, I've got the following: <Location ...
2
votes
1answer
615 views

Apache inflate application/ with mod_filter

I need to prevent pdf objects from being gzipped. Really, this only needs to take place if the request is from the Mozilla browser (but since I can't get something as seemingly simple as no-gzip for ...
4
votes
3answers
9k views

Linux gzip multiple subdirectories into separate archives?

How would I be able to compress subdirectories into separate archives? Example: directory subdir1 subdir2 Should create subdir1(.tar).gz and subdir2(.tar).gz
2
votes
3answers
6k views

“tar cfz” versus “tar cf - | gzip”: are they different? (or how to improve a backup)

I want to speed up my backup done with tar cfz, the common way to do it. But day by day my backed up files grow so it becomes slower. I was thinking to take advantage of the several cores available ...
0
votes
2answers
3k views

I am trying gzip compression for my javascripts and css file but for css it is not working

I am trying gzip compression for my js and css files. but for css it is not working. also when i do page speed analysis using firefox page speed it asks to enable gzip compression on your server. it ...
0
votes
2answers
1k views

How to disable chunking in apache?

When using mod_deflate in Apache2, Apache will chunk gzipped content, setting the Transfer-encoding: chunked header. Is there any setting that would change Apache's default behavior, and have Apache ...
2
votes
2answers
178 views

Backup file format that enables easy access of specific files?

I need to upgrade a Server and there have to make a compressed backup of a lot of directories. The question is: Which format should I use? tar.gz, cpio? Both compression and decompression processes ...
5
votes
3answers
3k views

How to list content from a tar file without recursion?

I've a tar (gz, bzip) file and want to see its content, but not recursively. This is: The "first level" in the file. I already know how to see content: tar -ztf file.tar.gz But it's recursive!! ...
0
votes
3answers
147 views

Ran Gzip command and broke my site, need help with reverse command

In trying to back up a website on an apache server this am I ran the following: gzip -r /var/www/httpd/vhosts/mysite.com/ mysite.gzip Trying to backup the path to the gzip file. Howvever, after ...
2
votes
2answers
202 views

is gunzip atomic?

I have two scripts that watch a directory (postgres warm-standby) one script copies compressed files into the directory and then uncompresses them. the other script watches for the uncompressed ...
2
votes
5answers
1k views

Backup MySQL database and gzip

I'm trying to get a little more usefulness out of my MySQL backups. I'm wanting to gzip my backup when it's completed from a cron job. Here's the script I have so far to do the backup. #!/bin/sh ...
0
votes
1answer
1k views

Apache mod_deflate enable?

I'm using the follow code in .htaccess. It works nicely in localhost, however in production server i'm having troubles with gzip compression. AddOutputFilterByType DEFLATE text/css text/html ...
1
vote
2answers
2k views

IIS6: Serve static content gzipped for clients that support it

How can I configure IIS to automatically serve static resources (pictures, javascript, css and so on) compressed for clients that support it - and serve "normal" content for clients that does not ...
0
votes
4answers
1k views

How to tar.gz *.php, *.txt, *.inc, *.js, *.css, *.php3 files?

I want to backup my server, but not bother with images /videos etc. how can i tar.gz all those types of files i want (basically text files)?
1
vote
1answer
3k views

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 articles: http://weblogs.asp.net/owscott/archive/2009/02/22/iis-7-compression-good-bad-how-much.aspx ...
2
votes
2answers
2k views

Use mod_deflate or gzip for centos5+apache

I'd like to compress the JS and CSS (perhaps also html?) files that I'm sending out. I've read a lot about gzip and mod_deflate but I'm not really sure what's the best to use? I'm looking for the ...
0
votes
5answers
914 views

gunzip “No space left on device”

I have a gzipped file that Ubuntu reports is 2,119,952,848 bytes in size. When I try to gunzip on a mount with 12GB free space, I get the error "No space left on device". Here's where it gets really ...
3
votes
6answers
3k views

Does gunzip work in memory or does it write to disk?

We have our log files gzipped to save space. Normally we keep them compressed and just do gunzip -c file.gz | grep 'test' to find important information but we're wondering if it's quicker to keep ...
1
vote
2answers
1k views

View rotated log files Mac OS X Server (*.?.gz)

Trying to look at some of our older log files and find they're cryptic "Unix Executable Files". This particular server I'm working with is an older Mac OS X Server (10.4 - Tiger). -rw-r----- 1 ...
3
votes
2answers
1k views

nginx is not using gzip to talk to backend servers

Our web servers are running IIS 7 and are configured to compress dynamic and static content. When I hit these servers directly, gzip compression works. I recently placed nginx in front of them, ...
1
vote
1answer
428 views

Why Can't I Pre-Zip Server Files?

It's just good common sense to have your server gzip your files before they send them to users (I use Nginx) Is there anyway to save the server some overhead and pre-zip those files for the server, ...
0
votes
2answers
388 views

What are the command-line options for un-tarring a tar.gz file to a specific directory?

This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it. What ...
6
votes
1answer
442 views

How does a web server/the http protocol handle version control and compression?

When a client browser requests a file from the web server, I know that some kind of check is performed, because the files needed to serve the web page may already be cached by the web browser. So, if ...
5
votes
3answers
1k views

Incorrect gzipping of http requests, can't find who's doing it

We're seeing some very strange mangling of HTTP responses, and we can't figure out what is doing it. We have an app server handling JSON requests. Occasionally, the response is returned gzipped, but ...