Hi All, I have installae qmail + qmail-scanner, right now my qmail-queue.log is getting bigger.. I'm affraid it's gonna get so big like couple of megs in a week. How can i run log rotate so it will be like qmail-queue.log.tar.gz.1 and so on.. regards, -- Arie Reynaldi Zanahar reymanx at gmail.com http://www.reynaldi.or.id
On 11/17/05, Arie Reynaldi Z
Hi All,
I have installae qmail + qmail-scanner, right now my qmail-queue.log is getting bigger.. I'm affraid it's gonna get so big like couple of megs in a week. How can i run log rotate so it will be like qmail-queue.log.tar.gz.1 and so on..
man logrotate gives good examples. For example
compressed
/var/log/qmail.log {
rotate 5
weekly
}
rotates log file /var/log/mail.log on a weekly basis exactly 5 times
before deleting old logs. By default log files are compressed (set
global compressed flag). The compressed files can be distinguished by
date which is part of the file name: qmail.log-20051711.gz.
\Steve
--
Steve Graegert
On Wednesday 16 November 2005 22:04, Arie Reynaldi Z wrote:
Hi All,
I have installae qmail + qmail-scanner, right now my qmail-queue.log is getting bigger.. I'm affraid it's gonna get so big like couple of megs in a week. How can i run log rotate so it will be like qmail-queue.log.tar.gz.1 and so on..
regards,
-- Arie Reynaldi Zanahar reymanx at gmail.com http://www.reynaldi.or.id
#/usr/sbin/logrotate /etc/logrotate.conf --force If I understand what you're trying to do. If not, disregard. ;-) -- ...Yogich
participants (3)
-
Arie Reynaldi Z
-
Steve Graegert
-
Yogich