0

I'm having difficulty understanding this logrotate file. Please correct me if I'm wrong

/var/log/app-logs
{
        daily
        rotate 7
        maxage 7
        dateext
        compress
        delaycompress
        missingok
        notifempty
        create 666 ubuntu ubuntu
}

/var/log/app-logs is going to be rotated daily(That day log file is compressed when the day finishes). logrotate will make sure there are not more than 7 compressed logs(.gz) If there are any .gz files whose age > 7 days, they will be deleted

1 Answer 1

0

Your prediction is correct.

You can find perfect howto about logrorate here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .