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:
/var/mail/mylog {
        compress
        daily
        rotate 7
        notifempty
}