Difference between revisions of "SUNScholar/Daily Admin"

From Libopedia
Jump to navigation Jump to search
Line 3: Line 3:
  
 
==Login==
 
==Login==
'''Login in as the DSpace user.'''
+
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01
  
 
==Crontab==
 
==Crontab==

Revision as of 10:18, 22 September 2012

Introduction

This wiki help page assumes that you have used the three system setup procedures to install an Ubuntu server with DSpace software.

Login

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S01

Crontab

Edit the crontab, by typing the following in a terminal:

crontab -e

Add the following lines:

# m h  dom mon dow   command
MAILTO="%myadmin@repo.ac.za%"


# Item counts
@hourly		/home/dspace/bin/dspace itemcounter

# 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

# 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

# Check for lifted embargos
10 0 * * * /home/dspace/bin/dspace embargo-lifter

# Send out subscription e-mails
0 1 * * * /home/dspace/bin/dspace sub-daily
 
# Run stat analyses 
10 1 * * * /home/dspace/bin/dspace stat-general
20 1 * * * /home/dspace/bin/dspace stat-monthly

# Run stat analyses reports
10 2 * * * /home/dspace/bin/dspace stat-report-general
20 2 * * * /home/dspace/bin/dspace stat-report-monthly

# Run the media filter
@weekly	   /home/dspace/bin/dspace filter-media

# Index items
0 3 * * * /home/dspace/bin/dspace index-update

# Generate sitemaps
0 6 * * * /home/dspace/bin/dspace generate-sitemaps

Replace %myadmin@repo.ac.za% with the email address of the person to receive admin email.

Template:CONSOLE

References

Back to After Installation Tasks