Tagesaktuelle Logdateien

Alain Schroeder alain at parkautomat.net
Sun Jun 30 22:35:02 CEST 2002


On Sun, Jun 30, 2002 at 10:24:50PM +0200, Frank Baurichter wrote:
> Hallo,
> 
> habe hier scheinbar zwischendurch Mail Probleme. Die Log-Datei ist nun
> inzwischen ziemlich groß geworden. Um mal differenziert nachschauen zu
> können, habe ich mir folgendes überlegt:
> 
> Jeden Tag um Mitternacht soll die datei /var/log/mail gezippt werden in
> /var/log/oldmaillog/[datum]mail und eine neue mail Datei aufgemacht
> werden.
> 
> Irgendwelche Vorschläge, wie sich sowas am einfachsten lösen ließe?
> 
alain at butterfly:~$ apt-cache show logrotate
Package: logrotate
Priority: important
Section: admin
Installed-Size: 132
Maintainer: Paul Martin <pm at debian.org>
Architecture: i386
Version: 3.5.9-9
Depends: libc6 (>= 2.2.4-4), libpopt0 (>= 1.6.2-1), cron (>= 3.0pl1-53) | anacron, base-passwd (>= 2.0.3.4)
Recommends: mailx
Filename: pool/main/l/logrotate/logrotate_3.5.9-9_i386.deb
Size: 26678
MD5sum: 98f6e8e3b51aac9c9a5d8036220668b8
Description: Log rotation utility
 The logrotate utility is designed to simplify the administration of
 log files on a system which generates a lot of log files.  Logrotate
 allows for the automatic rotation compression, removal and mailing of
 log files.  Logrotate can be set to handle a log file daily, weekly,
 monthly or when the log file gets to a certain size.  Normally, logrotate
 runs as a daily cron job.


????

	Ciao,
	   Alain

-- 
There is no excuse for laziness, but I'm working on it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020630/528796cb/attachment.sig>


More information about the Linux mailing list