logrotate

Syntax


 /path/to/file.log {
	 rotate 30
	 daily
	 compress
	 missingok
	 copytruncate
	 dateext
 }