Difference between revisions of "SUNScholar/Daily Admin"

From Libopedia
Jump to navigation Jump to search
 
(141 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Introduction==
+
<center>
{{WARNING}}
 
  
==Login==
+
  '''[[SUNScholar/Install DSpace/S11|Back to After Installation Tasks]]'''
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01
+
</center>
Click on the link above to find out how to login to the server and then return here.
 
  
==Crontab==
+
==Introduction==
Edit the crontab, by typing the following in a terminal as the '''dspace''' user:
+
<font color="red">'''Just after installation it is critically important that you enable daily automated tasks for your digital archive.'''</font>
crontab -e
 
If asked to select an editor, choose '''nano'''
 
 
 
Then add the following lines using the copy and paste functions of firefox and nano:
 
 
 
'''Replace %myadmin@repo.ac.za% with the email address of the person to receive system admin email.'''
 
<pre>
 
# m h  dom mon dow  command
 
MAILTO="%myadmin@repo.ac.za%"
 
 
 
### See wiki customisation page for setup details ###
 
### http://wiki.lib.sun.ac.za/index.php/SUNScholar/Indexes ###
 
## Update item search and browse indexes ##
 
0 3 * * *      /home/dspace/bin/dspace index-update
 
 
 
### See wiki customisation page for setup details ###
 
### http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics ##
 
## SOLR stats update ##
 
@hourly /home/dspace/bin/dspace stats-util -f
 
@hourly /home/dspace/bin/dspace stats-util -i
 
@daily /home/dspace/bin/dspace stats-util -u
 
@daily /home/dspace/bin/dspace stats-util -m
 
 
 
### See wiki customisation page for setup details ###
 
### http://wiki.lib.sun.ac.za/index.php/SUNScholar/Discovery ###
 
## SOLR discovery update ##
 
@daily          /home/dspace/bin/dspace update-discovery-index -o
 
@weekly        /home/dspace/bin/dspace update-discovery-index -b -f
 
@monthly        /home/dspace/bin/dspace update-discovery-index -c
 
 
 
## Bitstream checksums update ##
 
@weekly        /home/dspace/bin/dspace checker -u -d2h -p
 
@weekly        /home/dspace/bin/dspace checker-emailer -a
 
@monthly /home/dspace/bin/dspace cleanup
 
 
 
## Item counts ##
 
@hourly /home/dspace/bin/dspace itemcounter
 
 
 
## Send out subscription e-mails ##
 
0 1 * * *      /home/dspace/bin/dspace sub-daily
 
 
## Run the media filter ##
 
@weekly         /home/dspace/bin/dspace filter-media
 
 
 
## Generate sitemaps for Google indexing ##
 
0 6 * * *      /home/dspace/bin/dspace generate-sitemaps
 
 
 
### Setup embargoes before enabling this ###
 
### See wiki customisation page for setup details ###
 
### http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Embargo ###
 
## Check for lifted embargos ##
 
10 0 * * *      /home/dspace/bin/dspace embargo-lifter
 
 
 
### The following are not needed if using the new SOLR stats above ###
 
## Run stat analyses ##
 
#10 1 * * *      /home/dspace/bin/dspace stat-general
 
#20 1 * * *      /home/dspace/bin/dspace stat-monthly
 
  
## Run stat analyses reports ##
+
In order to send out subscription emails, update search, browse, full-text indexes and do general daily housekeeping on the system, a regular maintenance script must be run automatically daily. On a Unix/Linux based system this is easy to accomplish with use of the "crontab" facility.
#10 2 * * *      /home/dspace/bin/dspace stat-report-general
 
#20 2 * * *      /home/dspace/bin/dspace stat-report-monthly
 
  
</pre>
+
==Requirements==
 +
<font color="red">'''[[SUNScholar/Install_DSpace/S03#Step_3.2|Click here]] to setup the "source" folder first.'''</font>
 +
==Instructions==
  
{{NANO}}
+
===[[SUNScholar/Daily Admin/6.X|For DSpace 6.X]]===
 +
===[[SUNScholar/Daily Admin/5.X|For DSpace 5.X]]===
 +
===[[SUNScholar/Daily Admin/4.X|For DSpace 4.X]]===
 +
===[[SUNScholar/Daily Admin/3.X|For DSpace 3.X]]===
  
{{CONSOLE}}
+
==YouTube Video==
 +
<html5media width="560" height="315">https://www.youtube.com/watch?v=jH8tI0byvFA</html5media>
  
 
==References==
 
==References==
 +
*https://github.com/DSpace/demo.dspace.org/blob/master/scripts/linux/crontab
 +
*http://www.crontab-generator.org
 
*http://en.wikipedia.org/wiki/Cron
 
*http://en.wikipedia.org/wiki/Cron
 
*http://adminschoice.com/crontab-quick-reference
 
*http://adminschoice.com/crontab-quick-reference
*https://wiki.duraspace.org/display/DSDOC3x/Installation#Installation-'cron'Jobs
+
*http://www.yourownlinux.com/2014/04/schedule-your-jobs-in-linux-with-cron-examples-and-tutorial.html
*https://wiki.duraspace.org/display/DSDOC18/Installation#Installation-'cron'Jobs
+
*http://ask.xmodulo.com/add-cron-job-linux.html
*https://wiki.duraspace.org/display/DSDOC17/Installation#Installation-'cron'Jobs
+
*http://teknixx.com/working-with-cron-jobs-on-linux
*http://www.dspace.org/1_6_2Documentation/ch03.html#N10A98
+
*http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command
*http://dspace.2283337.n4.nabble.com/DSpace-1-7-and-cron-tasks-td3389488.html
+
*http://techarena51.com/index.php/a-beginners-guide-to-bash-scripting
 +
*http://www.linuxandubuntu.com/home/linux-utility-understand-linux-crontab-or-cron-expressions-to-run-command-at-specific-interval
 +
{{Tomcat7}}
  
'''[[SUNScholar/Install Dspace/S11|Back to After Installation Tasks]]'''
+
[[Category:System Administration]]
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 14:38, 30 October 2019

Back to After Installation Tasks

Introduction

Just after installation it is critically important that you enable daily automated tasks for your digital archive.

In order to send out subscription emails, update search, browse, full-text indexes and do general daily housekeeping on the system, a regular maintenance script must be run automatically daily. On a Unix/Linux based system this is easy to accomplish with use of the "crontab" facility.

Requirements

Click here to setup the "source" folder first.

Instructions

For DSpace 6.X

For DSpace 5.X

For DSpace 4.X

For DSpace 3.X

YouTube Video

References

When using the Ubuntu 16.04 LTS server change all instances of tomcat to tomcat8.
When using the Ubuntu 14.04 LTS server change all instances of tomcat to tomcat7.
When using the Ubuntu 12.04 LTS server change all instances of tomcat to tomcat6.