JBAS-827 Add collections XML file cleanup to CRONTAB
authorBill Erickson <berickxx@gmail.com>
Tue, 4 Aug 2015 14:56:39 +0000 (10:56 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/utility-scripts/CRONTAB

index 4e69412..132ad0d 100644 (file)
@@ -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