Difference between revisions of "Template:EPrints Crontab Template"

From EPrints Documentation
Jump to: navigation, search
(Added template crontab for EPrints)
 
(Replaced with EPRINTS_PATH and ARCHIVE_ID as appropriate.)
Line 1: Line 1:
 
  # Generate browse views
 
  # Generate browse views
  00 01 * * * /opt/eprints3/bin/generate_views REPO --generate menus
+
  00 01 * * * EPRINTS_PATH/bin/generate_views ARCHIVE_ID --generate menus
 
   
 
   
 
  # Send emails alerts (e.g. editorial reviews)
 
  # Send emails alerts (e.g. editorial reviews)
  00 02 * * * /opt/eprints3/bin/send_alerts REPO daily
+
  00 02 * * * EPRINTS_PATH/bin/send_alerts ARCHIVE_ID daily
  10 02 * * 0 /opt/eprints3/bin/send_alerts REPO weekly
+
  10 02 * * 0 EPRINTS_PATH/bin/send_alerts ARCHIVE_ID weekly
  20 02 1 * * /opt/eprints3/bin/send_alerts REPO monthly
+
  20 02 1 * * EPRINTS_PATH/bin/send_alerts ARCHIVE_ID monthly
 
   
 
   
 
  # Lift expired embargoes on documents
 
  # Lift expired embargoes on documents
  00 03 * * * /opt/eprints3/bin/lift_embargos REPO >> /opt/eprints3/archives/REPO/var/lift_embargos.log
+
  00 03 * * * EPRINTS_PATH/bin/lift_embargos ARCHIVE_ID >> EPRINTS_PATH/archives/ARCHIVE_ID/var/lift_embargos.log
 
   
 
   
 
  # Generate Site Map
 
  # Generate Site Map
  00 04 * * * /opt/eprints3/ingredients/eps_lib/bin/tools/generate_sitemap REPO
+
  00 04 * * * EPRINTS_PATH/bin/tools/generate_sitemap ARCHIVE_ID

Revision as of 08:45, 11 August 2026

# Generate browse views
00 01 * * * EPRINTS_PATH/bin/generate_views ARCHIVE_ID --generate menus

# Send emails alerts (e.g. editorial reviews)
00 02 * * * EPRINTS_PATH/bin/send_alerts ARCHIVE_ID daily
10 02 * * 0 EPRINTS_PATH/bin/send_alerts ARCHIVE_ID weekly
20 02 1 * * EPRINTS_PATH/bin/send_alerts ARCHIVE_ID monthly

# Lift expired embargoes on documents
00 03 * * * EPRINTS_PATH/bin/lift_embargos ARCHIVE_ID >> EPRINTS_PATH/archives/ARCHIVE_ID/var/lift_embargos.log

# Generate Site Map
00 04 * * * EPRINTS_PATH/bin/tools/generate_sitemap ARCHIVE_ID