logrotate: three questions
Hi all! I've looked in the logrotate man page, /usr/share/doc/logrotate
(not much there), and google, and I can't seem to find the answer to
these questions:
1) I'd like to have the option of never deleting the backups for certain
files. The 'rotate' keyword doesn't seem to do this for me, since 0
indicates no logkeeping at all. Is there a way to specify that I don't
ever want to delete my logs? Is this perhaps done simply by not having
a default 'rotate' entry and not specifying a 'rotate' value for the
files in question?
2) The 'extension' keyword -- can it be used to embed a date instead of
a number into the backups? I found a number of posts asking this
question on google, but no definitive answer. If I *did* manage to do
so, would putting dots in the filename confuse logrotate? How does it
parse the files? (The latter is probably a RTFS question, huh?)
3) Permissions. The logrotate app is only executable by root on my box.
I'm trying to imagine the situation in which giving a normal user access
to logrotate would hurt anything, as long as logs have appropriate
permissions. Could the paranoid among us speak up and educate me?
--
monique
Reply to: