nix, shell, perl, php, mysql and mac os x tips and tricks

Friday, December 10, 2004

Set up file rotation on debian

Stick a file in /etc/logrotate.d. Call it "mylog"
or something and put this inside:
1./var/mail/mylog {
2.        compress
3.        daily
4.        rotate 7
5.        notifempty
6.}