Difference between revisions of "SUNScholar/Daily Admin"
Jump to navigation
Jump to search
| Line 11: | Line 11: | ||
==PostgreSQL== | ==PostgreSQL== | ||
| − | PostgreSQL also benefits from regular ' | + | 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: | Type as follows in a terminal: | ||
Revision as of 10:50, 6 February 2014
Back to After Installation Tasks
For DSpace 3.2
Click on the heading above.
For DSpace 1.8.2
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
- 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