Browsing articles tagged with "compression - Admins Goodies"
Dec 4, 2012
tom

tar: How to create a tar file with arbitrary leading directories w/o ‘cd’ing to parent dir

Say I have a directory of files at /home/user1/dir1 and I want to create a tar with only “dir1″ as the leading directory: /dir1/file1 /dir1/file2 I know I can first cd to the directory cd /home/user1/ tar czvf dir1.tar.gz dir1 But when writing scripts, jumping from directory to directory isn’t always favorable. I am wondering is there a way to do it with absolute paths without changing current directories? I know I can always create [...]

Continue Reading »
Nov 17, 2012
tom

How can i handle huge log files?

I am running SSD servers because I have great experiences with performance. However I have webservers which serve lots of requests and the uncompresssed logfiles of one day tend to grow out the database. I have usual standard format Webserver log files. Is there maby a way to compress them “on the fly”? Asked by Joe Hopfgartner Logrotate This utility can automatically inform your daemon to switch logs as it renames and compresses them. Since [...]

Continue Reading »
Aug 3, 2012
tom

how to make rsync not uncompressing files?

I’m using rsync to copy files between servers, I’m using -z option what compresses data only for the network transfer stage. But I would like to leave compressed files on remote machine and I have not found this option in rsync. Is this possible ? Asked by Wojtek No, it is not possible. You’ll need to compress the data either before or after you transfer it. Answered by womble Check more discussion of this question. [...]

Continue Reading »
May 25, 2012
tom

Random files are compressed on the disk

I am now managing Windows Server 2003 originally setup by someone else. What I noticed is that even though file compression is not turned on at the drive level (when I go to drive Properties “Compress drive to save disk space” is unchecked) a lot of files are still compressed on the disk seemingly at random. For example in “C:\Windows” folder about half of the files are compressed (appear blue in Windows Explorer and have [...]

Continue Reading »
May 13, 2012
tom

SSH compression

I want max compression on my ssh tunnel cos I’m on a dialup line At the man page can one can read: CompressionLevel …..The meaning of the values is the same as in gzip(1). Note that this option applies to protocol version 1 only. What if I want max compression rate and while using ssh version 2? How know the protocol version I’m using? Asked by frankabel To know the protocol version of ssh, you [...]

Continue Reading »
May 10, 2012
tom

IIS 7.5 – different file size for same compressed file served from two different servers

I’m facing the problem that our lengthy CSS file (129 KB) gets delivered by our ASP.NET web app (running on IIS 7.5 using .NET 4.0) compressed to 24 KB on my local server machine and 36 KB on both our staging and production sites. My local OS is Windows Server 2008 R2 Enterprise, the web servers run Windows Web Server 2008 R2. I used the Fiddler to look into the requests but they seem not [...]

Continue Reading »
Apr 26, 2012
tom

text compression in postfix

I’m having the following arrangement. One server compiling emails in php and another server which run postfix (thus I have network latencies). Each email is about 300Kb and so as to send an email (using Zend email class) it takes about 0.2s . However, if I compress the email text content, the size becomes 30Kb and the latency about 0.06 . The problem is that postfix doesn’t support text compression, thus I’m thinking of developing [...]

Continue Reading »
Mar 21, 2012
tom

Why is IIS7 not compressing my static files?

I am trying to get IIS to compress jquery.js (and all other static files, but using jquery as the example here) on my localhost, but something goes wrong. The funny part is that when I look in my %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files\MySiteName, I see the jquery.js file there, and its size is 24 KB. But in the browser, according to the Net tab on Firebug, the size is 69 kb. I’ve tried the following: – [...]

Continue Reading »
Mar 8, 2012
tom

Can the encryption option with zip on Linux when used from the command line?

Can the encryption option on Info-ZIP be used from the command line? The zip man page says: -e –encrypt Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be echoed; if standard error is not a tty, zip will exit with an error). The password prompt is repeated to save the user from typing errors. Is there a way to [...]

Continue Reading »
Mar 8, 2012
tom

Can the encryption option with Info-ZIP on Linux be used from the command line?

Can the encryption option on Info-ZIP be used from the command line? The zip man page says: -e –encrypt Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be echoed; if standard error is not a tty, zip will exit with an error). The password prompt is repeated to save the user from typing errors. Is there a way to [...]

Continue Reading »
Pages:12345678»