Decrease the size of data, typically to preserve space or reduce network bandwidth required while transmitting files. It can be applied to files, folders, disks, etc.

learn more… | top users | synonyms

4
votes
2answers
1k views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
1
vote
1answer
1k views

gzip compression using mod_deflate apache with tomcat

I'm trying to enable gzip compression in my Apache server which is fronting a Tomcat instance using a connector. I tried several variants of the module configuration settings in my httpd.conf. Here is ...
0
votes
1answer
1k views

Nginx: Disable gzip-compression for http only

Because of the BREACH vulnerability I'd like to disable gzip compression for TLS traffic, but not for regular HTTP traffic. I could split up every Nginx server section into two separate TLS- and ...
0
votes
0answers
13 views

How do you git archive a branch using gzip with highest compression level?

I'm trying to git archive a branch using gzip with the highest level compression (9) but it seems to not compress at that level. Here is my command: git -C /home/user/example.com/ archive --format ...
0
votes
1answer
1k views

Compress and remove logs from jboss on linux with cron

I need to compress and remove log files after some time from serwer. I have never write scripts before. So far i have script logs.sh: #!/bin/bash LOGS=/usr/local/jboss/server/default/log/ ...
5
votes
3answers
4k views

Limiting 7zip CPU usage on Windows Server 2008 (from batch file)

Does anyone know of a way (specific to 7zip or general) to limit the CPU usage of 7zip while it is archiving a long list of files? OS is Windows Server 2008 R2, and 7zip is run via command line from a ...
1
vote
1answer
17 views

Are there any tipping points when compressing contents of web server responses might not be the right choice?

I'm running an API Proxy server and want to compress the (uncompressed) response contents I get from the API endpoints in order to send them faster to the client that initiated the request. However, ...
0
votes
0answers
19 views

Enable compression in IIS but prevent BREACH without changing code

We run IIS 8 on Windows 2012 server and I am concerned of http://breachattack.com/, this is why we disabled compression completely. This is not optimal from the page-speed analysis, however. ...
2
votes
4answers
6k views

Should I use rsync compression over a gigabit LAN?

I normally use rsync's -z option to enable compression when transferring files over the internet. However, if I am on my own (idle) gigabit LAN, do I still want compression? Or will it be faster ...
2
votes
2answers
62 views

ZFS: very big files + compression + snapshots

I backup several virtual disks (total = around 4 Tb), with several weeks of retention time. I use 4 x 4 Tb disks in the computer dedicated to primary backup. The filesystem is ZFS RAIDZ2, so 8 Tb ...
29
votes
8answers
28k views

Unzipping files that are flying in through a pipe

Can I make unzip or any similar programs work on the standard output? The situation is I'm downloading a zip file, which is supposed to be unzipped on the fly. Related issue: ...
0
votes
2answers
4k views

Gzip compression with nginx

In my nginx.conf I have: gzip on; gzip_static on; gzip_buffers 16 8k; gzip_comp_level 9; gzip_http_version 1.0; gzip_min_length 1000; gzip_types text/plain text/css ...
1
vote
1answer
71 views

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 ...
1
vote
4answers
353 views

How to “really” reduce the size of KVM VMs images?

I've spent many hours searching the web about how to shrink KVM virtual disk images, especially for Windows guests, with no luck. All I've found is to zeroize the VM free space, defrag the virtual ...
16
votes
8answers
22k views

How to check if Apache compression is working?

I just added the following to my Apache config file: AddOutputFilterByType DEFLATE text/html text/plain text/xml How do I check if it is actually working? Nothing on the browser tells me if the ...
-2
votes
1answer
37 views

What are the downsides of http compression?

I always was aware that http supports gzip compression, but never cared about it. I counted on that the servers and shared hosts I use would have activated it by default (I'm more of a frontend ...
8
votes
2answers
3k views

Apache2 and logrotate: delaycompress needed?

I am currently looking at the file size of my Apache logs as they became huge. In my logrotate configuration, I have delaycompress enabled. Does Apache really need this (as the logrotate documentation ...
9
votes
6answers
3k views

File size with zfs compression

I usually estimate the size of a whole directory tree using du -ks $DIRECTOY_TREE_ROOT, but this method cannot be used when zfs compression is on. The total displayed by ls -l is ok for a single ...
1
vote
1answer
25 views

How to prevent compression of images served via HTTP

I have an already optimized JPEG image in my server 32.07 kB (and in my local computer), 800px * 534px, if I request it via browser, it keeps the same width * height, but its size gets smaller 17,97 ...
0
votes
0answers
10 views

iis 7.5 doesn't compress javascript

I can't get httpCompression to gzip my .js's This is my web.config <urlCompression doStaticCompression="true" doDynamicCompression="true"/> <serverRuntime enabled="true" ...
0
votes
0answers
34 views

IIS7 httpCompression dynamicTypes not matching the wildcard *(star) in “application/json*”

The Problem: My goal is to enable gzip compression of responses from IIS for the content-type "application/json*", but when the wildcard * is added instead of an exact string match compression ...
0
votes
2answers
167 views

Can't send to compressed (zipped) folder

I'm IT Technician at a Secondary School and our Network Manager is away on long term leave. Currently our student's aren't able to send to - compressed folder. When trying the error 'File not found ...
1
vote
2answers
25 views

Copying between lzo compressed BtrFS's: de/re-compressing?

I'm copying a large number of files between two lzo compressed BtrFS filesystems on different drives mounted on the same machine. It appears that the files are being de/re-compressed. Is there a way ...
1
vote
2answers
62 views

Lightweight transparent compression filesystem?

I have an AMD64 KVM VPS at RamNode, it has 30 GB disk, 256 MB RAM, and 1 "virtual CPU" (I have no idea of the specs of the host CPU). It will be used to store many small, easily compressed files, ...
3
votes
3answers
2k views

Faster zlib alternatives [closed]

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
97 views

Can't get included CSS and JS files to be compressed

I have enabled compression via .htaccess and in httpd.conf However when I run it through the various online testers, its always saying that various included files are not compressed. Apache version ...
0
votes
2answers
393 views

Unzip from stdin to stdout - funzip, python

The goal is to read a zip file from stdin and uncompress to stdout. Funzip works and is the solution I am looking for, the zip contains a single file, unfortunately funzip fails when the compressed ...
1
vote
0answers
47 views

“optimize” pdf files in linux directory [closed]

Following situation that I could not think of a satisfying solution: Users are uploading pdf documents to a certain directory on my linux host. These documents are sometimes much larger than ...
14
votes
2answers
15k views

Transparent compression filesystem in conjunction with ext4

I am trying to test a project that needs compressed storage with use of the ext4 file system since the application I use relies on ext4 features. Are there any production/stable solutions out there ...
0
votes
0answers
20 views

How to enable static GZip compression for versioned “/style.css?v=1” resourcess in IIS?

Google PageSpeed reports that files like .css and .js are compressed, but .css?v=1 and .js?v=1 are not. How to enable static compression for files that have a dynamically changing version number in ...
0
votes
1answer
68 views

mod_deflate and Pagespeed

I´ve activated mod_deflate on my server. The problem is that Google pagespeed says that my site needs a compression. Have anybody an idea? This code is in the /etc/apache2/apache2.conf. I restartet ...
1
vote
0answers
48 views

Hyper-V avhd files compressed

I have inherited a machine at a client site that the previous IT person thought it would be a bright idea to compress all the AVHD and the base VHD files for one of their servers running under hyper-v ...
3
votes
5answers
2k views

Enable row level compression on all tables and indexes

One of the (optional) requirements for the Works With SQL Server 2008 test is that row level compression is enabled on all tables and indexes. We have an existing database with a lot of tables and ...
5
votes
1answer
621 views

Compression of Tomcat mod_jk results in Apache httpd

I'm developing a web application locally on my system, serving it using Tomcat (tomcat-7.0.52). In production, I want to front the Tomcat with an Apache httpd (Apache/2.2.15). This works and I ...
7
votes
2answers
4k views

IIS 7.5 ignoring HttpCompression settings in web.config

I'm trying to enable dynamic compression for the mime type application/json. In applicationHost.config, I've made the following change: <section name="httpCompression" ...
8
votes
4answers
4k views

Why is IIS 7 is ignoring certain (but not all) MIME types for compression? Giving error: DYNAMIC_COMPRESSION_NOT_SUCCESS - Reason 12

So, I'm a bit of an IIS7 n00b but I've used most of the old IIS systems going back to 3. I'm trying to turn on dynamic compression and it's working, mostly. It doesn't work for my ADO.Net Data ...
0
votes
1answer
108 views

How do you create a qcow2 file that is small yet commodious on a Linux server?

I believe that there are qcow2 files that displace a small amount of gigabytes on a server (as verified with a df -h on the physical server) yet allow for lots of space when you log into the ...
97
votes
11answers
108k views

How to zip/unzip files in Powershell?

Is there a one-liner that will zip/unzip files (*.zip) in PowerShell?
3
votes
4answers
17k views

.docx owa downloading as a zip?

have an issue that for .docx files in owa are downloading as a zip file... anyone help?
13
votes
12answers
9k views

Best compression for ZFS send/recv

I'm sending incremental ZFS snapshots over a point-to-point T1 line and we're to a point where a day's worth of snapshots can barely make it over the wire before the next backup starts. Our send/recv ...
0
votes
2answers
243 views

Extracting 200 GB ZIP file [closed]

I have a large 200 GB file to extract. I was using WinRAR on a Windows laptop, and it's a very slow process. I am considering using an Amazon EC2 instance to help speed up the process. How can ...
4
votes
3answers
3k views

Store file in zip archive with different name (linux command shell)

In a linux command line, you zip a file by: zip -mqj archive.zip file.txt Now, I need to store 'file.txt' as 'file2.txt' in 'archive.zip', without renaming the file before zipping. When unzipped, ...
0
votes
0answers
57 views

Debugging Ansible's support for compressed database imports?

The documentation for Ansible's mysql_db module says, "Uncompressed SQL files (.sql) as well as bzip2 (.bz2), gzip (.gz) and xz compressed files are supported." However, when I try to import a .gz ...
2
votes
1answer
4k views

What is the best way to compress backend to nginx reverse proxy data?

We are going to be running a nginx reverse proxy that will pull data from a backend via the internet. What we mean by via the internet is the backend machine will not be on a lan with the front ...
10
votes
3answers
19k 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
1answer
356 views

HTTP compression in Apache reverse proxy?

I have an App server where Apache httpd is installed which serves the requests. We have another Proxy machine which redirects the requests to this App Server httpd using proxy pass. When I apply gzip ...
2
votes
2answers
2k views

Powershell Script to Zip Files

I'm new to Powershell. I have a need that I assumed that it would be perfect for. However, I've quickly come to the point where I feel I'm in over my head. Basically, I need to create a .zip file. I ...
2
votes
2answers
917 views

large 20TB+ NTFS volume allocation unit & compression

I am creating backup volume on RAID6 and I want to expand it in the future up to 12 2TB discs. Currently we have 4 discs in RAID5 and 4096 allocation unit + file compression on. Everything is working ...
2
votes
2answers
93 views

Reduce xen image disk usage

Two cases: 1.If making hdd image using dd and copy it trough nfs to another server: mount -o ro,remount / dd if=/dev/sda bs=64K | gzip -c > /share/test.img.gz then after gunzip I get 20Gb (for ...
0
votes
0answers
72 views

Trying to disable Apache compression for an URL, but I can't get it to work

I'm trying to disable Apache compression for certain URLs by adding the lines below to .htaccess. I'm trying to get one URL working, but I can't get it to ignore the URL - Apache still renders those ...