BxLUG groupe des utilisateurs de GNU/Linux de Bruxelles

Espace membres

Automatic Logfiles Compression

Under GNU/Linux, there's a small utility called logrotate whose purpose is to archive logfiles from time to time so that they don't grow too much. It also compresses the oldest logfiles.

On a Debian Woody, this compression is not active by default, but it is really easy to do.

All you need to do is uncomment one single line in /etc/logrotate.conf with your favorite text editor, like this:
# uncomment this if you want your log files compressed
compress

Bienvenue dans le monde du libre