On Sun, Dec 30, 2001 at 09:46:53PM -0500, Werner Puschitz wrote:
> man logrotate
> logrotate - rotates, compresses, and mails system logs
Indeed... in order to have daily compression, you should have something like
this:
~$ cat /etc/logrotate.conf
# Rotate on a daily basis...
daily
# Save backups for 21 days, then remove each backup that is older than 21
# days...
rotate 21
# Create new (empty) log files after rotating old ones
create
# Compress your backup-logfiles...
compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
~$
--
The Linux philosophy is "laugh in the face of danger". Oops. Wrong one.
"Do it yourself". That's it. ~(Linus Torvalds)
Attachment:
pgp00091.pgp
Description: PGP signature