Faster Compression

In: Computers|Living|Performance|Programming|Rants & Raves

10 May 2008

It’s no secret that gzip is handy on UNIX systems for compressing files. But what I hadn’t really considered before is that you don’t have to create a huge file and then gzip it. You can simply pipe output through it and have it compressed on the fly.

For example:
[root@oxygen]# mysqldump --all-databases -p | gzip > 2008May10-alldbs.sql.gz

That backed up all the databases on this machine and compressed them. (It’s a 31MB file, but that’s nothing when you realize that one of my databases is about 90MB in size, and I have plenty others at 10-20MB each.)

Comment Form

On Other Sites

  • Red Eye: lol @ Mr notto 3.13 am here [...]
  • noname: This post was exactly the solution to the error I was getting, thanks. [...]
  • GGE: Thank you. Exactly my error. [...]
  • notty: Go ahead and believe this while I ransack your servers AHHHAHAHAA Mr Notty [...]
  • Matt: Hey Victor, A couple good resources for you... http://www.scanboston.com/boston.htm is really det [...]