Sakssham,
Since it's just a reinstall of an existent repo, you may achieve it by
pg_dump'ing the whole db and then restoring it on the new machine.
But there are some catches. You have to first install the exact same
version that you're actually running, then restoring the DB, copy the
installation folder, and test it. Then, you update the source code to
whatever version you want, compile it and update the installed
packages. It has to be like this because there may be some DB
migrations between the two versions that if ignored can crash your
system.

It's complicated to do a step-by-step guide. But it will be something
along the following lines:

[ON THE OLD MACHINE]
1) pg_dump -U [database-user] -f [backup-file-location] [database-name]
2) copy the installation folder to new machine (you can use "scp",
"rsync", .... Or compress with "tar" and copy using a usb stick,..
however you like)
3) copy the source code folder to new machine

[ON THE NEW MACHINE]
1) create an user and a database
(https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-Installation)
1.1) restore the data using pg_restore
(https://www.postgresql.org/docs/9.2/static/app-pgrestore.html)
2) Verify the source code/installation folder and their location
2.1) You may have to recompile and update the installation folder,
specially if the folder path has changed
3) Install and configure the webserver
4) test it
5) Upgrade the system to new version
(https://wiki.duraspace.org/display/DSDOC5x/Upgrading+DSpace#UpgradingDSpace-BackupyourDSpace)
6) Test it

Done!


2016-09-23 14:59 GMT-03:00 Alan Orth <[email protected]>:
> Hi,
>
> You should just dump the PostgreSQL database (using pg_dump) from the old
> server and import it on the new server (using pg_restore). I do this all the
> time to set up new test environments from my production server.
>
> Regards,
>
>
> On Tue, Sep 20, 2016, 13:17 Saksham Agarwal <[email protected]> wrote:
>>
>> Hi,
>>
>> I have a dspace 5.0 instance installed and running on centos-6 since a
>> long time and many users have their login accounts on it.
>> I now have done a fresh install of dspace-5.5 on ubuntu-14.04. I want to
>> move all the logins to the new machine. I am using postgresql on both.
>> Please provide a step by step guide on how to do this.
>>
>> Thanks and Regards
>> Saksham
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
>
> Alan Orth
> [email protected]
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.



-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to