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

2
votes
2answers
154 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
966 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 ...
1
vote
1answer
707 views

Gzip pre-compression

I'm using mod_deflate to compress my .css and .js files on the fly: <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css ...
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 ...
2
votes
1answer
528 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 ...
5
votes
3answers
10k views

Content-Length not sent when gzip compression enabled in Apache?

I would really appreciate some help understanding this Apache behaviour. I am communicating to PHP from an iPhone Objective-C app in application/json. Gzip compression is enabled on the server, and ...
1
vote
3answers
2k views

Help me enable gzip compression on nginx

Here's the gzip section from my current nginx.conf: gzip on; gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/html text/css application/json ...
2
votes
2answers
989 views

Faster zlib alternatives

I wonder, if there are any faster builds of zlib around with more advanced optimizations? If it's possible to optimize it using SSE instructions or Intel C++ compiller, or some trick which were ...
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 ...
0
votes
4answers
927 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)?
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
797 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
2k 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 ...
0
votes
1answer
256 views

How to enable gzip?

I would like to enable GZIP throughout my whole website. What would be the best way to do it? Would it be through .htaccess? Any pointers on how to do this would be greatly appreciated.
1
vote
2answers
800 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 ...
0
votes
1answer
2k views

How to disable Gzip compression by PHP script on FastCGI

We used this PHP code to disable gzip compression for specific scripts @apache_setenv('no-gzip', 1); But our admin migrated to FastCGI and this does not work anymore. How to do it? Thanks
1
vote
1answer
357 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
364 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 ...
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, ...
5
votes
1answer
302 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 ...
1
vote
7answers
6k views

Compressing and copying large files on Windows Server?

I've been having a hard time copying large database backups from the database server to a test box at another site. I'm open to any ideas that would help me get this database moved without having to ...
0
votes
1answer
125 views

Does PS3 browser handle gzipping? [closed]

Not sure if this would be a correct place to post, but here it goes. I've been getting reports form people who try accessing my site from a PS3, that every page appears like a jumble of random ...
12
votes
3answers
23k views

How to enable either Gzip or Deflate compression via .htaccess?

How to enable either Gzip or Deflate compression via .htaccess and which one is best these days? Code examples needed.
4
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 ...
3
votes
2answers
714 views

gzip js on apache

the following configuration in httpd.conf only gzip css and html, not javascript, any idea? AddOutputFilterByType DEFLATE text/html text/plain text/javascript text/css AddOutputFilterByType DEFLATE ...
0
votes
2answers
3k views

TAR command to extract a single file from a .tar.gz

Does anyone have a command syntax for extracting 1 file from a .tar.gz that also allows me to place the extracted file in a certain directory? I have Google'd this and get too many variations with a ...
0
votes
1answer
960 views

Normalize Accept-Encoding via HAProxy for optimized Squid hit rate

Our website infrastructure uses HAProxy for load balancing, a Squid cluster for caching, and application data is on an IIS cluster. We load balance HAProxy by URI to optimize the Squid hit-rate, but ...
2
votes
3answers
7k views

How do I turn on gzip in Apache2?

I simply did : sudo aptitude install apache2 And that's how my server is set up. No extra modules, no nothing. I'm on ubuntu jaunty.
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 ...
4
votes
2answers
152 views

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 ...
5
votes
1answer
885 views

Howto: create file with current date and time on linux

I have a cron job for creating a gzip file: mysqldump... | gzip -c > myfile..sql.gz I want myfile to be of the format "time_date.sql.gz" How do I create file with the current date and time? ...
2
votes
2answers
8k views

Apache - How to disable gzip content encoding (eg DEFLATE) for one set of URLs?

I have a ubuntu apache webserver and I have enabled mod_deflate to gzip all the content. However there's one folder I'd like to disable the mod_deflate for. I was going to do something like this: ...
3
votes
2answers
99 views

enabled gzip — running out of threads

I enabled gzip in apache2 and started load testing -- I am seeing a lot of keep alives state busy state -- 95% of the web server worker threads are being used at any given time While CPU is ok, I am ...
37
votes
7answers
36k views

mysqldump to a tar.gz

Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command: So from this: mysqldump dbname -u root -p ...
5
votes
4answers
8k views

how to enable iis 7 dynamic content compression?

I've turned on dynamic content compression in IIS 7, but Fiddler is showing that my dynamic pages are still being served without content-encoding: gzip. Static content compression is working fine on ...
1
vote
3answers
287 views

Can Apache 2 be configured to start sending gzipped data early?

We have Apache set up to gzip compress html pages before they are sent to the client browser. However, some of our pages are slowish to generate and it seems that Apache is holding on until it has ...
2
votes
3answers
6k 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
0
votes
1answer
1k views

nginx - combine js files, cache and serve gzipped

I'm using nginx to serve static files. I have several js files and different client require different combination of the available files. Is it possible that nginx will combine the files in the ...
0
votes
1answer
499 views

Apache output compression working for CSS/JS but not PHP

I have this in my .htaccess: <IfModule mod_deflate.c> <FilesMatch "\.(js|css|php)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> Testing files on my site, it seems ...
1
vote
1answer
319 views

bzip2 and compressed stream concatenation

With gzip you can do something like this: gzip -c file1 > output.gz gzip -c file2 >> output.gz gzip -c file3 >> output.gz and when you uncompress output.gz it will contain ...
1
vote
1answer
274 views

Can automatic decompression be configured in .htaccess?

I've got a bunch of static files (eg index.xhtml) in an Apache2 web root. I don't have control over the server's configuration, but am allowed to modify .htaccess in the web root. I would like to ...
2
votes
4answers
3k views

Break up a dd image into multiple files

I'm doing some data recovery from a hard disk. The disk has about 300GB of data on it, but I lack another hard drive that has 300GB of free space. I have three HDs, with 150, 40, and 120 GB free. ...
2
votes
1answer
1k views

IIS6 not doing gzip compression when including Via header in request

I have some static content going through a CDN. I am using IIS6's built in compression (gzip & deflate) for static content and this is working fine when I request it. However, when the CDN makes ...
2
votes
2answers
1k views

Http gzip compression and performance

I've always tried to enable gzip compression on web servers because it seemed to have very low CPU cost and you obtain a significant data transfer reduction. Now I we have a public server that has ...
1
vote
6answers
4k views

Nginx + Ubuntu 9.10, gzip not functioning

So I installed and configured Nginx 0.7.62 on a new Slicehost Ubuntu 9.10 slice. All seems to work fine with the server, except that gzip isn't working for one reason or another. I made sure that ...
3
votes
2answers
1k views

gzip on httpd or on Tomcat?

In a Java web application running in an Apache Tomcat servlet container with an Apache httpd in front of it: is it better to use enable GZIP compression on Tomcat or on httpd level? is it better to ...
1
vote
1answer
172 views

GZip on IIS6.0 - Some sites work, others dont?

I have a 2k3 server setup running iis6.0 and ive just enabled gzip compression succesfully - for the most part. Most sites (eg: clickhips.co.uk) are coming up in YSlow as being compressed fine however ...
0
votes
1answer
753 views

How can I SetEnv based on pre-rewritten URI or post-rewritten query parameter?

So there's a file in Wordpress, wp-content/blogs.php, that serves files uploaded through Wordpress. There's a rewrite rule in the WP .htaccess that rewrites URLs of the format ...
3
votes
5answers
897 views

`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 ...
6
votes
2answers
1k views

Apache: Send pre-packed gzip'ed files

I want Apache to send static files gzip'ed over the wire, but also want Apache to not always gzip them over and over again. So I thought if it wouldn't be possible to deliver an .gz file if it exists. ...