klenwell information services : UbuntuLogrotate

Logrotate

return to DevUbuntu

Sample Config (replace CAPS):
~/PROJECT/logs/*.log {
		daily
		rotate 30
		compress
		delaycompress
		create 640 USER GROUP
}


To check disk space (source):
$ du -ks * | sort -nr | cut -f2 | xargs -d '\n' du -sh


References

http://www.linuxconfig.org/Logrotate
http://linux.die.net/man/8/logrotate
http://www.debian-administration.org/articles/117