Authority linking scripts CRONTAB synchronization
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Jun 2017 14:57:10 +0000 (10:57 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Update the sample CRONTAB to match how linking new/modified authority
records scripts are run in production.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/authority-control/linking/README.adoc
KCLS/utility-scripts/CRONTAB

index b19687d..aa73498 100644 (file)
@@ -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]
index bbccf8a..216f2f1 100644 (file)
@@ -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