From 15930fdf1d5eee0d0dbfb48acf53b5c5ce949024 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 30 Jul 2015 15:14:11 -0400 Subject: [PATCH] JBAS-827 Disable circ purge by default in CRONTAB And do some light rearrangement of cron entries for consistency. Signed-off-by: Bill Erickson --- KCLS/utility-scripts/CRONTAB | 32 ++++++++++------------ .../purge_circs/purge_circulations.sh | 0 2 files changed, 14 insertions(+), 18 deletions(-) mode change 100644 => 100755 KCLS/utility-scripts/purge_circs/purge_circulations.sh diff --git a/KCLS/utility-scripts/CRONTAB b/KCLS/utility-scripts/CRONTAB index 4f4abef7f7..4e694121c3 100644 --- a/KCLS/utility-scripts/CRONTAB +++ b/KCLS/utility-scripts/CRONTAB @@ -50,9 +50,14 @@ PGHOST = localhost # change for cluster install # batch job to remove inacitve patron cards per HS#18605 ESI/Galen Charlton 2012-03-27 45 0 * * * . ~/.bashrc && cd $SCRIPT_DIR/inactive_cards && ./remove_inactive_patron_cards.sh -# circulation purging -# TODO -#0 2 * * * cd $SCRIPT_DIR/purge_circs && ./purge_circulations.sh +# Update copy status for BC +#0 22 * * * . ~/.bashrc && cd $SCRIPT_DIR/bc_missing/ && ./bc_missing.sh + +# Update Envisionware patron access +#30 0 * * * . ~/.bashrc && cd $SCRIPT_DIR/envware_access/ && ./envware_access.sh + +# Update Envisionware patron access +#0 1 * * * . ~/.bashrc && cd $SCRIPT_DIR/juv_to_adult/ && ./juv_to_adult.sh # EDI # TODO: un-comment for EDI @@ -92,24 +97,15 @@ 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 {} \; -# Update copy status for BC -#0 22 * * * cd $SCRIPT_DIR/bc_missing/ && ./bc_missing.sh - -# Update Envisionware patron access -#30 0 * * * cd $SCRIPT_DIR/envware_access/ && ./envware_access.sh - -# Update Envisionware patron access -#0 1 * * * cd $SCRIPT_DIR/juv_to_adult/ && ./juv_to_adult.sh - # 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 # oldest xact_finish date in the database. The last range brings us up # to today - 6 months, which are the youngest circs we want to anonymize. -0 0 * * 1 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2004-08-12 --end 2010-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log -0 0 * * 2 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2010-01-01 --end 2011-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log -0 0 * * 3 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2011-01-01 --end 2012-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log -0 0 * * 4 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2012-01-01 --end 2013-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log -0 0 * * 5 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2013-01-01 --end 2014-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log -0 0 * * 6 cd $SCRIPT_DIR/purge_circs/ && bash purge_circulations.sh --start 2014-01-01 --end $(date -d -6months-1day +'\%F') --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 1 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2004-08-12 --end 2010-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 2 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2010-01-01 --end 2011-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 3 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2011-01-01 --end 2012-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 4 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2012-01-01 --end 2013-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 5 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2013-01-01 --end 2014-01-01 --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log +#0 0 * * 6 cd $SCRIPT_DIR/purge_circs/ && ./purge_circulations.sh --start 2014-01-01 --end $(date -d -1year-1month +'\%F') --increment "1 year" --duration 120 >> /openils/var/log/purge_circs.log diff --git a/KCLS/utility-scripts/purge_circs/purge_circulations.sh b/KCLS/utility-scripts/purge_circs/purge_circulations.sh old mode 100644 new mode 100755 -- 2.11.0