[plug] How to retain logrotate backups forever
Chris McCormick
chris at mccormick.cx
Fri Dec 29 19:15:56 AWST 2023
Hi Byron,
Thanks, I ended up doing this and set it to 100 years of backups.
Cheers,
Chris.
On 29/12/23 1:57 pm, Byron Hammond wrote:
> 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
> <mailto: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 <mailto:plug at plug.org.au>
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au <mailto:committee at plug.org.au>
> PLUG Membership: http://www.plug.org.au/membership
>
--
https://mccormick.cx/
More information about the plug
mailing list