DSpace Backup

Stop tomcat server:

/etc/init.d/tomcat6  AND restart postgresql server

Lonin in postgress database server and take backup dspace database-

Pg_dump –E UNICODE dspace>/home/dspace/dspace.sql

Copy dspace assetstore directory in your desired place

Cp /home/dspace/assetstore/* /desiredLocation/

Compress assetstore

tar cf- assetstore | gzip –c >assetstore.tgz

Copy database file and assetstore to your computer

Scp /home/dspace/dspace.sql root@remotemachine:/root/yourlocation/dspace.sql

Scp /home/dspace/assetstore.tgz root@remotemachine:/root/yourLocation/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s