Difference between revisions of "SUNScholar/Daily Admin"

From Libopedia
Jump to navigation Jump to search
Line 15: Line 15:
 
@daily            /home/dspace/bin/dspace itemcounter
 
@daily            /home/dspace/bin/dspace itemcounter
 
@daily            /home/dspace/bin/dspace stats-util -f -i
 
@daily            /home/dspace/bin/dspace stats-util -f -i
@weekly        /home/dspace/bin/dspace checker -d2h -p
+
@weekly        /home/dspace/bin/dspace checker -u -d2h -p
 
@weekly        /home/dspace/bin/dspace update-discovery-index
 
@weekly        /home/dspace/bin/dspace update-discovery-index
 
@monthly      /home/dspace/bin/dspace cleanup
 
@monthly      /home/dspace/bin/dspace cleanup

Revision as of 13:30, 4 December 2011

This procedure assumes that you have used the three step process to install DSpace.

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%"

@daily            /home/dspace/bin/dspace itemcounter
@daily            /home/dspace/bin/dspace stats-util -f -i
@weekly         /home/dspace/bin/dspace checker -u -d2h -p
@weekly         /home/dspace/bin/dspace update-discovery-index
@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 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