[plug] How to retain logrotate backups forever
Byron Hammond
byronester at gmail.com
Fri Dec 29 13:57:58 AWST 2023
Can you bump up the rotate number to something massive so it effectively
isn't deleted for a very very long time?
On Fri, 29 Dec 2023 at 09:22, Chris McCormick <chris at mccormick.cx> wrote:
> Hi all,
>
> Does anybody know how to cause logrotate to retain the rotated logs
> forever? The man page for `rotate` says this:
>
>
> > rotate count
> > Log files are rotated count times before being removed or mailed
> to the address specified in a mail directive. If count is 0, old
> versions are removed rather than rotated.
>
>
> It doesn't say what happens if this option is omitted entirely. I asked
> ChatGPT and it lied to me with a catastrophic answer which would delete
> everything. I can't find an answer on the usual sites like
> Stackoverflow. Hoping for a response an actual human who has done this
> before.
>
> Thanks very much!
>
>
> Chris.
>
> --
> https://mccormick.cx/
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20231229/5d68ea12/attachment.html>
More information about the plug
mailing list