2

if have lograte in my daily cron

/etc/cron.daily/logrotate  -- assume cron.daily is run at 1.05am daily

and if my logrotate config has a

weekly

settings

Does it means that my logrotate will run daily, but the logs will only be rotated weekly ?
and weekly since when/what time ? -- (since the logfile creation time or since the last time logrotate runs ?)

2

Does it means that my logrotate will run daily, but the logs will only be rotated weekly ?

Yes.

weekly since when/what time ?

Documentation

weekly Log files are rotated if the current weekday is less than the weekday of the last rotation or if more than a week has passed since the last rotation. This is normally the same as rotating logs on the first day of the week, but it works better if logrotate is not run every night.

  • @lain thanks, I read the same part of documentation. So the weekly is counted since the last rotation done -> if this is the 1st time that the logrotate is run , then can I say that nothing will be rotated until 7 days later ? – tiongmaru Jan 24 '16 at 9:08
  • are you still there ? – tiongmaru Jan 26 '16 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.