From d7004f40286c8a4adb1bdad1d52854014267aba0 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 13 Jan 2021 13:35:46 +0100 Subject: [PATCH] logrotate: Never delete system log messages `/var/log/messages` Currently, they are deleted after twelve months, which is undesired, as older logs are sometimes needed for comparison and debugging. > If count is -1, old logs are not removed at all (use with caution, may > waste performance and disk space). We have enough space, so keep the logs. --- logrotate/logrotate.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logrotate/logrotate.conf b/logrotate/logrotate.conf index 9974d20..48b9f7a 100644 --- a/logrotate/logrotate.conf +++ b/logrotate/logrotate.conf @@ -2,7 +2,7 @@ dateext dateformat .%Y-%m dateyesterday - rotate 12 + rotate -1 monthly sharedscripts postrotate