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.
Questions tagged [compression]
418 questions
16
votes
3 answers
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

Ben
- 3,800
- 18
- 65
- 96
15
votes
4 answers
HTTP Compression on IIS 6.0 (Windows Server 2003)
There are many things you have to do/consider when you want to enable HTTP compression on IIS 6.0 (Windows Server 2003).
Can somebody please provide a comprehensive list of the actions you have to take in order to enable HTTP compression properly?

splattne
- 28,508
- 20
- 98
- 148
15
votes
3 answers
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 requested by the client.
From my…

William Denniss
- 327
- 1
- 3
- 12
14
votes
1 answer
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 virt-manager VM and issue a df -h. How do you create such…

Catbird55
- 163
- 1
- 1
- 6
14
votes
2 answers
How can I list the content of a zip archive, but only the first level?
I have a big zip file and I want to know what it's contain. I know I can run:
zipinfo file.zip
but the output is too verbose and there are a lot of files in the sub-directories.
I want to see a list of the files in the top level.
Example
If the…

Sapir
- 143
- 1
- 6
14
votes
3 answers
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, the file should be called 'file2.txt'.
How can I…

Trident Splash
- 445
- 1
- 6
- 13
13
votes
2 answers
Is it good practice to use NTFS Compression on IIS Log folders?
Is it a good practice to use NTFS Compression on a IIS Log folders and files?
I was able to go down from 20GB to 7GB by doing this. The IIS logs are per day, and have an average size of 20MB but some extreme days have 200MB.
I'm wondering if IIS has…

Malartre
- 321
- 2
- 5
- 13
12
votes
4 answers
How to use the full LTO-2 Tape backup capacity of 200/400GB?
I have an Ultrium 448 tape drive, LTO-2 tapes (200/400GB) and I'm using HP Data Protector as the backup client. The system is set to format and overwrite all tapes but I never manage to get more that ~150GB on a tape before it asks for another tape…

Andrew Hoole
- 131
- 4
12
votes
8 answers
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 or no read permission' appears. It works for…

Scott Gunn
- 121
- 1
- 1
- 5
12
votes
2 answers
Is there a compression format that supports tail operations?
I'm looking for a compression format that supports being tailed. Meaning you dont have to read the entire file to get the last X uncompressed bytes.
Is this possible with any of the formats like bzip2, xz, lzma, etc?
I once coded something using…

phemmer
- 5,909
- 2
- 27
- 36
12
votes
5 answers
How do you set bzip2 block size when using tar?
I am using tar to backup a linux server to tape. I am using the -j option to compress the file with bzip2, however I can't see a way to adjust the block size options for bzip2 from tar. The default block size is 900,000 bytes which gives the best…

Guy C
- 505
- 1
- 4
- 9
11
votes
6 answers
Tips on efficiently storing 25TB+ worth million files in filesystem
Say you are confronted with 25 TB worth uncompressed log files and you have at your disposal an array of 20 commodity boxes with collective free storage capacity of 25 TB.
How would you store these ?.
a) Which distributed file system to use ?
b)…

Ankur Gupta
- 230
- 2
- 8
11
votes
4 answers
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 Service (Astoria) requests, batched or not.
I found the…

Peter Oehlert
- 281
- 2
- 7
10
votes
9 answers
On a modern system, will using disk compression give me better overall performance?
It seems that CPU increases have outpaced disk speed for a while. Assuming a desktop or laptop with modern dual core Intel/AMD CPU and a single average SATA disk, would doing compression on most all of the disk give better overall performance?…

kbyrd
- 3,672
- 2
- 24
- 34
10
votes
6 answers
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 directory, but which is the simplest way to get the…

marcoc
- 748
- 4
- 10