Wednesday, July 13, 2016

Change port number 8080 to 8081

Open following files and change the port number 8080 to 8081 or other port numbers.

sudo leafpad /dspace/config/modules/discovery.cfg

Change port number 8080 to 8081 in the following line,

search.server = http://localhost:8080/solr/search
 
sudo leafpad /dspace/config/modules/oai.cfg 

Thursday, June 2, 2016

Restore old versions of Dspace to Dspace 6

Take a backup of Dspace database and folders

Assume that the old version of Dspace is running. Take a PostgreSQL database backup. Open a Terminal and apply following commands,

sudo su - postgres
pg_dump dspace > dspace.backup


The above command take a backup of Dspace database and store in /var/lib/postgresql/ .Copy the database.backup file to a safe place.

Tuesday, March 8, 2016

Schedule Dspace backup using cron job

Schedule backup of Asset store and Log folders
Cron job is very helptul to automate the routine tasks in Linux. Using Cron job Dspace user can take regular backup and deposit in an assigned folder. No need to find time for manual backup.

Open Applications > Accessories > Terminal

sudo su
crontab -e
It will ask to select an editor to open crontab, select nano editor.
Copy paste following two lines at the end of crontab,

45 16 * * * zip -r  /home/dspace/backup/assetstore.zip /dspace/assetstore
45 16 * * * zip -r  /home/dspace/backup/log.zip /dspace/log 

 
Above command will take backup of assetstore and log folders at evening 4:45 pm. You can change the timing.

Saturday, March 5, 2016

Install DSpace 5.x on Ubuntu 14.04 LTS

Installation of prerequisite applications

Open  Applications > Accessories > Terminal and execute following commands. Text in italics are commands to be executed.

sudo su
apt-get install leafpad openjdk-7-jdk postgresql ant maven

Clean Dspace database

User can clean the existing installation of Dspace by deleting database and asset store and retain fresh install state.

First take backup of your asset store and clean the directory.

sudo su
cd /dspace/assetstore
rm -rf *

 
Clean database and go to default state of installation

/dspace/bin/dspace database clean
/dspace/bin/dspace database migrate