Wednesday, July 27, 2011

log rotate

this is to add function to rotate specific log

create a new file at /etc/logroate.d/
and write this into it for rotate log function

/var/log/SAT-backup/*.log {
     monthly
     rotate 4
     missingok
     compress
}

No comments:

Post a Comment