Difference between revisions of "SUNScholar/Daily Admin"

From Libopedia
Jump to navigation Jump to search
 
(16 intermediate revisions by one other user not shown)
Line 5: Line 5:
  
 
==Introduction==
 
==Introduction==
<font color="red">'''Just after installation it is critically important that you enable daily automated tasks for your digital archive. See details below.'''</font>
+
<font color="red">'''Just after installation it is critically important that you enable daily automated tasks for your digital archive.'''</font>
  
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.
+
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.
  
On a Unix/Linux based system this is easy to accomplish with use of the "crontab" facility.
+
==Requirements==
 +
<font color="red">'''[[SUNScholar/Install_DSpace/S03#Step_3.2|Click here]] to setup the "source" folder first.'''</font>
 +
==Instructions==
  
Click on the headings below for more details of required "crontab"'s.
+
===[[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]]===
  
==[[SUNScholar/Daily Admin/5.X|For DSpace 5.X]]==
+
==YouTube Video==
==[[SUNScholar/Daily Admin/4.X|For DSpace 4.X]]==
+
<html5media width="560" height="315">https://www.youtube.com/watch?v=jH8tI0byvFA</html5media>
==[[SUNScholar/Daily Admin/3.X|For DSpace 3.X]]==
 
==PostgreSQL==
 
PostgreSQL also benefits from regular maintenance such as '''vacumn''', which optimizes the indexes and clears out any deleted data.
 
 
 
Type as follows in a terminal:
 
 
 
sudo -i
 
Enter the "dspace" user password. Then type:
 
su - postgres
 
 
 
crontab -e
 
When asked which editor to use, select "<tt>'''nano'''</tt>.
 
 
 
Then copy and paste the following:
 
20 4 * * * vacuumdb --analyze dspace > /dev/null 2>&1
 
  
 
==References==
 
==References==
 +
*https://github.com/DSpace/demo.dspace.org/blob/master/scripts/linux/crontab
 
*http://www.crontab-generator.org
 
*http://www.crontab-generator.org
 
*http://en.wikipedia.org/wiki/Cron
 
*http://en.wikipedia.org/wiki/Cron
Line 38: Line 29:
 
*http://ask.xmodulo.com/add-cron-job-linux.html
 
*http://ask.xmodulo.com/add-cron-job-linux.html
 
*http://teknixx.com/working-with-cron-jobs-on-linux
 
*http://teknixx.com/working-with-cron-jobs-on-linux
 +
*http://www.cyberciti.biz/faq/disable-the-mail-alert-by-crontab-command
 +
*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}}
 +
 +
[[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.