From 77870c50819bece7d9d67a40b84d3202cc03fd58 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 4 Aug 2015 10:56:39 -0400 Subject: [PATCH] JBAS-827 Add collections XML file cleanup to CRONTAB Signed-off-by: Bill Erickson --- KCLS/utility-scripts/CRONTAB | 3 +++ 1 file changed, 3 insertions(+) diff --git a/KCLS/utility-scripts/CRONTAB b/KCLS/utility-scripts/CRONTAB index 4e694121c3..132ad0d183 100644 --- a/KCLS/utility-scripts/CRONTAB +++ b/KCLS/utility-scripts/CRONTAB @@ -97,6 +97,9 @@ PGHOST = localhost # change for cluster install #10 2 * * * find /var/log/evergreen -type f -ctime +60 -delete #30 2 * * * find /var/log/evergreen -type f -ctime +2 -exec gzip {} \; +# compress collections API XML report files >=30 days old +# 45 0 * * * /usr/bin/find /openils/var/web/standalone/collections/ -type f -mtime +30 -not -name "*bz2" -exec /bin/bzip2 {} \; + # Anonymize a range of historical circs each night, with a maximum run # time of 120 minutes. We split them up, because each range takes time # to run (~45 minutes). The first range starts at 2004-08-12, which is the -- 2.11.0