me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@
(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"))