Dear Stephen,
You did not mentioned clearly whether you just want to move the data
to another server with the same version of DSpace or with a newer version.
I would like to share what I did in my case.
1. From server 1 to server 2 running the same version of DSpace.
1.1 Install DSpace in server 2 with a fresh install and make sure that
it is running.
1.2 Stop both DSpace instances by shutting down tomcat(s).
1.3 In server 1, dump the database using command line tool of postgresql
(are you using postgresql?). This should be done as the same user
running your DSpace instance:
pg_dump dspace > dspace.sql
Move dspace.sql to server 2. (In this case, I assume your database is
named dspace)
1.4 In server 2, make necessary change to handles in the
dumped database(dspace.sql). Better use replace string feature of emacs
editor. Fro example, the handles in server 1 will be
http://server1.domain/dspace/handle/123456/somenumbers. When you copy to
server 2 and you want them to become
http://server2.domain/dspace/handle/123456/somenumbers, then you have to
replace server1.domain with server2.domain. (I found it is more efficient
to do this using emacs.) You can use other text editors, but please make
sure that they will not destroy the file format.
When this is done, restore the dumped database to server 2.
This must be run by the same user running your DSpace instance:
psql dspace <dspace.sql
Again, I assume you name your database 'dspace'.
1.5 copy all files under [dspace]/assetstore of server 1 to that of
server 2. I did this by a simple command of Linux from server 2:
rsync -av username@[server 1]:[dspace]/assetstore/ [dspace]/assetstore
You have to replace [server 1] by the correct name or IP of your
server 1 and [dspace] by the correct path to your installed DSpace.
If you also want to transfer other data too, just do:
rsync -av username@[server 1]:[dspace]/log/ [dspace]/log
rsync -av username@[server 1]:[dspace]/reports/ [dspace]/reports
rsync -av username@[server 1]:[dspace]/search/ [dspace]/search
1.6 Start tomcat and done.
2. From server 1 to server 2 running the newer version of DSpace.
Follow all the procedure in 1.1-1.5, (these should be renumbered as
2.1-2.5).
2.6 upgrade the database structure, for example, from 1.5 to 1.6:
psql -U dspace -f [dspace]/etc/postgres/database_schema_15-16.sql dspace
2.7 start tomcat. You may have to run some init commands:
[dspace]/bin/dspace index-init
Hope this helps.
Panyarak Ngamsritragul
Prince of Songkla University
Hat Yai, Songkhla, Thailand
On Mon, 28 Feb 2011, Btri Consulting wrote:
> Hi all,
>
> I need to move a significant size collection from one DSpace server to
> another. I have gone through the DSpace 1.6.2 manual and googled quite a bit
> on this, and I have since a variety of discussions about how to do it and
> some of the problems. I am still not clear however, and hope that someone
> can give me a few specific answers. The two instances are on different Linux
> versions (from Ubuntu to Centos) and different versions of Postgresql (from
> 8.4 to 8.1 - long story).
>
> I have used the "Export (Migrate) Collection" option in DSpace which has
> generated a zip file with the requisite information. I assume I now upload
> this to the new server, unzip it an appropriate location and then run the
> "dsrun" command with the appropriate options. Could someone confirm and give
> me the specific switches/options for the "dsrun" in this case?
>
> Also, is there options that can be used with the "dsrun" to export and
> import only the metadata but not bitstreams for a collection? I have tried
> using the "Export Metadata" option on the first server and and then the
> "Import Metadata" option on the second instance but that keeps failing with
> an "unknown error".
>
> Regards
> Stephen
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech