<div dir="ltr">Can you bump up the rotate number to something massive so it effectively isn't deleted for a very very long time?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Dec 2023 at 09:22, Chris McCormick <<a href="mailto:chris@mccormick.cx">chris@mccormick.cx</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
Does anybody know how to cause logrotate to retain the rotated logs <br>
forever? The man page for `rotate` says this:<br>
<br>
<br>
 > rotate count<br>
 >     Log files are rotated count times before being removed or mailed <br>
to the address specified in a mail directive. If count is 0, old <br>
versions are removed rather than rotated.<br>
<br>
<br>
It doesn't say what happens if this option is omitted entirely. I asked <br>
ChatGPT and it lied to me with a catastrophic answer which would delete <br>
everything. I can't find an answer on the usual sites like <br>
Stackoverflow. Hoping for a response an actual human who has done this <br>
before.<br>
<br>
Thanks very much!<br>
<br>
<br>
Chris.<br>
<br>
-- <br>
<a href="https://mccormick.cx/" rel="noreferrer" target="_blank">https://mccormick.cx/</a><br>
_______________________________________________<br>
PLUG discussion list: <a href="mailto:plug@plug.org.au" target="_blank">plug@plug.org.au</a><br>
<a href="http://lists.plug.org.au/mailman/listinfo/plug" rel="noreferrer" target="_blank">http://lists.plug.org.au/mailman/listinfo/plug</a><br>
Committee e-mail: <a href="mailto:committee@plug.org.au" target="_blank">committee@plug.org.au</a><br>
PLUG Membership: <a href="http://www.plug.org.au/membership" rel="noreferrer" target="_blank">http://www.plug.org.au/membership</a><br>
</blockquote></div>