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.
This commit is contained in:
Ludovic Courtès 2022-07-31 18:32:13 +02:00
parent bfe3fdbc75
commit e5a6900baf
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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"))