<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=EPrints_Cron_Jobs</id>
	<title>EPrints Cron Jobs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=EPrints_Cron_Jobs"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;action=history"/>
	<updated>2026-08-11T11:16:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17139&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk at 09:15, 11 August 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17139&amp;oldid=prev"/>
		<updated>2026-08-11T09:15:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:15, 11 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are various tasks that it is important or useful that EPrints runs on a regular basis.&amp;#160; Cron jobs are one of the best and probably simplest ways of achieving this.&amp;#160; The best way to add a cron job for EPrints is to open the eprints' user's crontab for editing, as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are various tasks that it is important or useful that EPrints runs on a regular basis.&amp;#160; Cron jobs are one of the best and probably simplest ways of achieving this.&amp;#160; The best way to add a cron job for EPrints is to open the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;eprints&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;' user's crontab for editing, as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; crontab -e&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; crontab -e&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17138&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added issues_audit</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17138&amp;oldid=prev"/>
		<updated>2026-08-11T09:15:00Z</updated>

		<summary type="html">&lt;p&gt;Added issues_audit&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:15, 11 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;generate_sitemap&amp;lt;/code&amp;gt; cron job generates a XML sitemap at http://HOSTNAME/sitemap.xml.&amp;#160; This sitemap contains links to one or more numbered site maps each of which contain entries for each eprint abstract page in the live archive.&amp;#160; As new items are likely to be added continual, it is important to regular update this sitemap to include these new items.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;generate_sitemap&amp;lt;/code&amp;gt; cron job generates a XML sitemap at http://HOSTNAME/sitemap.xml.&amp;#160; This sitemap contains links to one or more numbered site maps each of which contain entries for each eprint abstract page in the live archive.&amp;#160; As new items are likely to be added continual, it is important to regular update this sitemap to include these new items.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &amp;lt;code&amp;gt;issues_audit&amp;lt;/code&amp;gt; cron job analyses eprints records in the whole, detecting things like those that have the same or similar title.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other Cron Jobs ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other Cron Jobs ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17135&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added page about EPrints cron jobs</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=EPrints_Cron_Jobs&amp;diff=17135&amp;oldid=prev"/>
		<updated>2026-08-11T09:10:27Z</updated>

		<summary type="html">&lt;p&gt;Added page about EPrints cron jobs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are various tasks that it is important or useful that EPrints runs on a regular basis.  Cron jobs are one of the best and probably simplest ways of achieving this.  The best way to add a cron job for EPrints is to open the eprints' user's crontab for editing, as follows:&lt;br /&gt;
 crontab -e&lt;br /&gt;
&lt;br /&gt;
== Default Cron Jobs ==&lt;br /&gt;
There are various different cron jobs you may want to deploy.  Below is a template crontab for a vanilla EPrints repositories without extra plugins or ingredients installed.&lt;br /&gt;
{{template:EPrints_Crontab_Template}}&lt;br /&gt;
The &amp;lt;code&amp;gt;generate_views&amp;lt;/code&amp;gt; cron job is to ensure both menu and listing pages for browse views (found under http://HOSTNAME/views/ and its sub-pages) are updated.  Browse views menu and listing pages are typically cached for 24 hours.  However, by regenerating these by cron job every 24 hours, they will load more quickly, as they won't needed to be regenerated on-the-fly because the cache has expired.  If you have a large EPrints repository with lots of different browse views, you may find this cron job takes several hours to complete.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;send_alerts&amp;lt;/code&amp;gt; cron jobs send out emails on a daily, weekly or monthly basis.  The most common use of these is to send emails to editors reminding them of items they need to review. Updates on results from saved searches also use the script to send out emails.  Other plugins or ingredients may add to the types of email that can be sent out by this scripts.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;lift_embargos&amp;lt;/code&amp;gt; cron job checks over all embargoed documents in eprint records and removes the access restriction on these documents if the embargo date has been reached.  It is useful to retain the out from this script as the embargo date will also be unset and sometimes this information is required retrospectively, so such a logs file is the most straightforward way of retrieving this.  (There are certain flags you can set for &amp;lt;code&amp;gt;lift_embargos&amp;lt;/code&amp;gt; if you need the embargo date retained.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;generate_sitemap&amp;lt;/code&amp;gt; cron job generates a XML sitemap at http://HOSTNAME/sitemap.xml.  This sitemap contains links to one or more numbered site maps each of which contain entries for each eprint abstract page in the live archive.  As new items are likely to be added continual, it is important to regular update this sitemap to include these new items.&lt;br /&gt;
&lt;br /&gt;
== Other Cron Jobs ==&lt;br /&gt;
Various plugins and ingredients will use cron jobs to support their functionality.  The some of the most common examples are:&lt;br /&gt;
&lt;br /&gt;
1. [[IRStats2]], which need to regularly process the access table to update usage statistics.&lt;br /&gt;
 30 03 * * * EPRINTS_PATH/ingredients/irstats2/bin/stats/process_stats ARCHIVE_ID &amp;gt;&amp;gt; EPRINTS_PATH/archives/ARCHIVE_ID/var/process_stats.log&lt;br /&gt;
2. [[Coversheets]], which needs to generate coversheeted versions of PDFs uploaded for certain eprint items.&lt;br /&gt;
 */15 6-17 * * 1-5 EPRINTS_PATH/ingredients/coversheets/bin/check_coversheets ARCHIVE_ID 250 2&amp;gt;&amp;amp;1 | grep -v -f EPRINTS_PATH/ingredients/coversheets/bin/ignore_warnings.txt&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
</feed>