From 01fb7e725b20abf1f2cbe9c54f16c2185a6dcba3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 28 Jan 2019 12:38:22 -0500 Subject: [PATCH] JBAS-2095 Syslog delete all files older than 2 years In other words, only retain the activity and apache access log files for 2 years total. Signed-off-by: Bill Erickson --- KCLS/admin-scripts/manage-log-files.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/KCLS/admin-scripts/manage-log-files.sh b/KCLS/admin-scripts/manage-log-files.sh index 93da78d070..ee02800a20 100755 --- a/KCLS/admin-scripts/manage-log-files.sh +++ b/KCLS/admin-scripts/manage-log-files.sh @@ -25,7 +25,10 @@ set -eu # Example: a compress value of "3" means compress files # last modified more than 3 days ago. COMPRESS_AGE=3 +# delete certain files that reach this age. DELETE_AGE=365 +# delete all files this old regardless of file type +DELETE_ALL_AGE=730 function usage { cat <