<div dir="auto"><div>Fingers crossed that logrotate still works on the OS that your descendents are using then. </div><div dir="auto"><br></div><div dir="auto">Remember to set up a cron job to send an alert so that they don't get a rude surprise when today's log unexpectedly gets deleted.<br></div><div dir="auto"><br></div><div dir="auto">Perhaps add a comment to your will about today's log being erased on a particular date, just to be sure.</div><div><br></div><div dir="auto">You could of course just set up a cron job to move the logs somewhere else and perhaps give them an appropriate name - say their ISO date with the name of the log.</div><div dir="auto"><br></div><div dir="auto">O</div><div data-smartmail="gmail_signature">--<br>finger painting on glass is an inexact art - apologies for any errors in this scra^Hibble<br><br>()/)/)() ..ASCII for Onno..</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Dec 2023, 19:16 Chris McCormick, <<a href="mailto:chris@mccormick.cx">chris@mccormick.cx</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Byron,<br>
<br>
Thanks, I ended up doing this and set it to 100 years of backups.<br>
<br>
Cheers,<br>
<br>
Chris.<br>
<br>
<br>
On 29/12/23 1:57 pm, Byron Hammond wrote:<br>
> Can you bump up the rotate number to something massive so it effectively <br>
> isn't deleted for a very very long time?<br>
> <br>
> On Fri, 29 Dec 2023 at 09:22, Chris McCormick <<a href="mailto:chris@mccormick.cx" target="_blank" rel="noreferrer">chris@mccormick.cx</a> <br>
> <mailto:<a href="mailto:chris@mccormick.cx" target="_blank" rel="noreferrer">chris@mccormick.cx</a>>> wrote:<br>
> <br>
> 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<br>
> 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 noreferrer" target="_blank">https://mccormick.cx/</a><br>
> _______________________________________________<br>
> PLUG discussion list: <a href="mailto:plug@plug.org.au" target="_blank" rel="noreferrer">plug@plug.org.au</a> <mailto:<a href="mailto:plug@plug.org.au" target="_blank" rel="noreferrer">plug@plug.org.au</a>><br>
> <a href="http://lists.plug.org.au/mailman/listinfo/plug" rel="noreferrer 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" rel="noreferrer">committee@plug.org.au</a> <mailto:<a href="mailto:committee@plug.org.au" target="_blank" rel="noreferrer">committee@plug.org.au</a>><br>
> PLUG Membership: <a href="http://www.plug.org.au/membership" rel="noreferrer noreferrer" target="_blank">http://www.plug.org.au/membership</a><br>
> <br>
<br>
-- <br>
<a href="https://mccormick.cx/" rel="noreferrer noreferrer" target="_blank">https://mccormick.cx/</a><br>
_______________________________________________<br>
PLUG discussion list: <a href="mailto:plug@plug.org.au" target="_blank" rel="noreferrer">plug@plug.org.au</a><br>
<a href="http://lists.plug.org.au/mailman/listinfo/plug" rel="noreferrer 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" rel="noreferrer">committee@plug.org.au</a><br>
PLUG Membership: <a href="http://www.plug.org.au/membership" rel="noreferrer noreferrer" target="_blank">http://www.plug.org.au/membership</a></blockquote></div>