Monday, October 3, 2016

Dspace backup manually

Backup of database
Open a Terminal and apply following commands,

sudo su
(Enter Linux Root password)

pg_dump -U dspace -h localhost -Fc dspace | gzip > dspace-$(date +%Y-%m-%d-%H.%M.%S).gz

Enter the password of Linux user for dspace.

Backup of Asset store and log folders.
Execute thress commands one bye one;

sudo su
zip -r assetstore.zip /dspace/assetstore
zip -r log.zip /dspace/log

Backup up files will be deposit in your home folder.

Image courtesy: Open Clip Art

No comments:

Post a Comment