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.