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.
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:
Post a Comment