From 325dd27fd442aa72253d613e9619d9bca606141c Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 17 Mar 2017 17:39:29 -0700 Subject: [PATCH] Reduce log archive to 30 days It's full again. Also, it's weird that this isn't parameterized. But now is not the time. Change-Id: I20c6f662d20089a1e8d9c4358878cb5f1ce2c05d --- 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 42a4206..09a0ff6 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 +45 -execdir rm \{\} \; \) \ + -o \( -type f -mtime +30 -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 \{\} \; \) \