Monday, October 3, 2016

Dspace backup manually

Backup of database
Open a Terminal and apply the following commands,

sudo su - postgres
pg_dump dspace > dspace.backup

Type exit to quit the Postgres prompt.
The above command takes a backup of the DSpace database and stores it in /var/lib/postgresql. Copy the database backup file to a safe place.


Enter the password of the Linux user for dspace.

Backup of Asset store and log folders.
Execute these commands one by one;
sudo zip -r assetstore.zip /dspace/assetstore
sudo zip -r log.zip /dspace/log

Backup-up files will be deposited in your home folder.

Image courtesy: Open Clip Art

No comments:

Post a Comment