Difference between revisions of "SUNScholar/Daily Admin"
Jump to navigation
Jump to search
| Line 17: | Line 17: | ||
# m h dom mon dow command | # m h dom mon dow command | ||
MAILTO="%myadmin@repo.ac.za%" | 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 ### | ### See wiki customisation page for setup details ### | ||
| Line 46: | Line 51: | ||
## Run the media filter ## | ## Run the media filter ## | ||
@weekly /home/dspace/bin/dspace filter-media | @weekly /home/dspace/bin/dspace filter-media | ||
| − | |||
| − | |||
| − | |||
## Generate sitemaps ## | ## Generate sitemaps ## | ||
Revision as of 10:22, 2 October 2012
Contents
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
Click on the link above to find out how to login to the server and then return here.
Crontab
Edit the crontab, by typing the following in a terminal as the dspace user:
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.
# 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 ## 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 ## #10 2 * * * /home/dspace/bin/dspace stat-report-general #20 2 * * * /home/dspace/bin/dspace stat-report-monthly
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
References
- http://en.wikipedia.org/wiki/Cron
- http://adminschoice.com/crontab-quick-reference
- https://wiki.duraspace.org/display/DSDOC3x/Installation#Installation-'cron'Jobs
- https://wiki.duraspace.org/display/DSDOC18/Installation#Installation-'cron'Jobs
- https://wiki.duraspace.org/display/DSDOC17/Installation#Installation-'cron'Jobs
- http://www.dspace.org/1_6_2Documentation/ch03.html#N10A98
- http://dspace.2283337.n4.nabble.com/DSpace-1-7-and-cron-tasks-td3389488.html
Back to After Installation Tasks