From 34c7f1ba65a57aa3bba9cb29a283a7e45c85a491 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 15 Feb 2017 21:21:43 +0000 Subject: [PATCH] Reduce job log retention to 45 days In recent months, log volume has picked up even more. Since we can't increase the size of this volume any further, reduce retention from 60 days to 45 days for now. Change-Id: I13695e665541cb604e81fcd43cf26681447224ba --- files/log_archive_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/log_archive_maintenance.sh b/files/log_archive_maintenance.sh index 832ee8f..42a4206 100644 --- a/files/log_archive_maintenance.sh +++ b/files/log_archive_maintenance.sh @@ -6,7 +6,7 @@ find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \ \( -type f -mmin +10 -not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \ \( -name \*.txt -or -name \*.html -or -name tmp\* \) \ -exec gzip \{\} \; \) \ - -o \( -type f -mtime +60 -execdir rm \{\} \; \) \ + -o \( -type f -mtime +45 -execdir rm \{\} \; \) \ -o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \) find -O3 /srv/static/docs-draft/ -depth -not -name lost+found \( \ \( -type f -mtime +21 -execdir rm \{\} \; \) \