Wednesday, 23 July 2014

logrotate change from gzip to bzip2 compression - EXPAINED

Default compression of log files in logrotate is gzip. In case that you want more efficient compression, you can switch gzip compression with bzip2 compression.

How to do this?


In /etc/logrotate.conf file you settings should look like this

.
.
#compress
compresscmd /usr/bin/bzip2
.
.

On next logrotate cycle your files will be compressed with bzip2.

No comments: