From e5a6900baf758a12024283171bf45f2fe90121ee Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 31 Jul 2022 18:32:13 +0200 Subject: services: rottlog: Keep important /var/log files for 16 weeks. The default "rotate" value is 1 as of rottlog 0.72.2, meaning that only one rotated file would be kept in addition to the active file. * gnu/services/admin.scm (%default-rotations): Add "rotate" option for %ROTATED-FILES. --- gnu/services/admin.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index 0b4ecaeb83..6951c7a9fd 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm @@ -93,7 +93,10 @@ (define %default-rotations (list (log-rotation ;syslog files (files %rotated-files) - (options '(;; Run post-rotate once per rotation + (frequency 'weekly) + (options '(;; These files are worth keeping for a few weeks. + "rotate 16" + ;; Run post-rotate once per rotation "sharedscripts" ;; Append .gz to rotated files "storefile @FILENAME.@COMP_EXT")) -- cgit v1.2.3