SUNScholar/Daily Admin
Jump to navigation
Jump to search
Back to After Installation Tasks
For DSpace 4.X
Click on the heading above.
For DSpace 3.X
Click on the heading above.
For DSpace 1.8.X
Click on the heading above.
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
Copy and paste the following:
20 4 * * * vacuumdb --analyze dspace > /dev/null 2>&1
- 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://www.crontab-generator.org
- https://github.com/DSpace/demo.dspace.org/blob/master/scripts/linux/crontab
- https://wiki.duraspace.org/display/DSDOC4x/Scheduled+Tasks+via+Cron
- 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://en.wikipedia.org/wiki/Cron
- http://adminschoice.com/crontab-quick-reference
- http://www.yourownlinux.com/2014/04/schedule-your-jobs-in-linux-with-cron-examples-and-tutorial.html