From: Bill Erickson Date: Mon, 5 Jun 2017 14:57:10 +0000 (-0400) Subject: Authority linking scripts CRONTAB synchronization X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c456efc55d23226702278a58e82ddd06436d9734;p=working%2FEvergreen.git Authority linking scripts CRONTAB synchronization Update the sample CRONTAB to match how linking new/modified authority records scripts are run in production. Signed-off-by: Bill Erickson --- diff --git a/KCLS/authority-control/linking/README.adoc b/KCLS/authority-control/linking/README.adoc index b19687d641..aa734985f0 100644 --- a/KCLS/authority-control/linking/README.adoc +++ b/KCLS/authority-control/linking/README.adoc @@ -1,5 +1,9 @@ = Linking = +Deprecate link-new-auth-records.pl? -- It's not currently +used and I believe all of its features have been duplicated in +authority_control_fields.pl and authority_authority_linker.pl + == Re-Link All Bibs Over 1 Week == [source,sh] diff --git a/KCLS/utility-scripts/CRONTAB b/KCLS/utility-scripts/CRONTAB index bbccf8a254..216f2f1418 100644 --- a/KCLS/utility-scripts/CRONTAB +++ b/KCLS/utility-scripts/CRONTAB @@ -118,11 +118,11 @@ BACKSTAGE_PASSWORD = BSPASS # web sitemap generator NOTE: change lib-hostname accordingly # 30 23 * * 0 . ~/.bashrc && cd /openils/var/web && /openils/bin/sitemap_generator --lib-hostname evgtesting.kcls.org --lib-shortname KCLS --prefix standalone/sitemaps/ -# Link newly created authority records -# 0 2 * * * . ~/.bashrc && cd /home/opensrf/Evergreen/KCLS/linking && ./link-new-auth-records.pl --modified-since 1 --link-auths --link-bibs --progress -# -# (Re-)Link newly created or modified bib records -# 0 3 * * * . ~/.bashrc && cd /home/opensrf/Evergreen/KCLS/linking && ./authority_control_fields.pl --refresh --modified-since 1 +# Update bib-2-auth links for bibs affected by authority record changes. +# 0 5 * * * . ~/.bashrc && cd $SCRIPT_DIR/../authority-control/linking && ./authority_control_fields.pl --auth-mod-since $(date -d -1day +'\%F') + +# Update auth-2-auth links for new or modified authority records +# 0 6 * * * . ~/.bashrc && cd $SCRIPT_DIR/../authority-control/linking && ./authority_authority_linker.pl --auth-mod-since $(date -d -1day +'\%F') # 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