Difference between revisions of "SUNScholar/Daily Admin"

From Libopedia
Jump to navigation Jump to search
Line 41: Line 41:
 
'''Replace %myemail@my.edu.ac.za% with the email address of the person to receive admin email.'''
 
'''Replace %myemail@my.edu.ac.za% with the email address of the person to receive admin email.'''
 
=Help=
 
=Help=
 +
* http://www.dspace.org/1_6_2Documentation/ch03.html#N10A98
 
* http://adminschoice.com/crontab-quick-reference
 
* http://adminschoice.com/crontab-quick-reference
 
* http://dspace.2283337.n4.nabble.com/DSpace-1-7-and-cron-tasks-td3389488.html
 
* http://dspace.2283337.n4.nabble.com/DSpace-1-7-and-cron-tasks-td3389488.html
  
 
  '''[[SUNScholar/IR|Back to IR Help]]'''
 
  '''[[SUNScholar/IR|Back to IR Help]]'''

Revision as of 09:41, 19 September 2011

Login

Login in as the DSpace user.

Crontab

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

crontab -e

Add the following lines:

# m h  dom mon dow   command
MAILTO="%myemail@my.edu.ac.za%"

@hourly         /home/dspace/bin/dspace itemcounter
@hourly         /home/dspace/bin/dspace stats-util -f -i
@weekly         /home/dspace/bin/dspace checker -d2h -p
@monthly        /home/dspace/bin/dspace cleanup

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

# 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
0 2 * * * /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 %myemail@my.edu.ac.za% with the email address of the person to receive admin email.

Help

Back to IR Help