Join Two Dspace instances - is it possible?

26 views
Skip to first unread message

Job Diogenes Ribeiro Borges

unread,
Oct 13, 2024, 1:40:31 PM10/13/24
to DSpace Technical Support
Hi,

Objective: Join Dspace Instances in One.

Step 1: backup 1st instance, pg_dump, assetstore, log.
Step 2 ; Build a new instance. 
Step 3: fill with data psql - f, move asset and log ..
Step 4: rebuild index, filter media,
Step 5: check instance http:..
- All ok.
Step 6: Export 2nd instance .. dspace -a -d -t AIP ... siteaip.zip
Step 7: Create a new community in new instance. (1234567890/997)
Step 8: try to ingest the siteaip.zip 
               dspace packager -r -k -a -e .. -p 123456789/997 -o ignoreHandle=true -o createMetadataFields=true siteaip.zip

But. Fail. with "java.lang.ClassCastException: org.dspace.content.Collection cannot be cast to org.dspace.content.Community"

The question is?
Is there a way to join two or more dspace instance data?

If has, which steps I need to follow?

Thanks

Job




DSpace Technical Support

unread,
Oct 24, 2024, 1:58:14 PM10/24/24
to DSpace Technical Support
Hi Job,

You likely can achieve this with the AIP ingest, but you will likely need to run the AIP ingest community-by-community, and using "submit" mode.  

Since you seem to want everything to go into a new Community (1234567890/997), you need to be aware that Communities can only contain other Communities or Collections.  This is why ingesting your "siteaip.zip" won't work, as that zip file represents a DSpace Site (i.e. the entire site) and not individual Communities.  Instead, you likely will need to find the AIPs for the top-level communities in that Site, and import them *one by one*.

You will also likely need to use "submit" mode in order to avoid Handle / identifier conflicts.  For instance, if both your DSpace sites had an object using handle "123456789/10", then one of them **must** get a new identifier.  You cannot have two objects with the same identifier.  This would be solved by using "submission mode".  See the docs at:  https://wiki.lyrasis.org/display/DSDOC7x/AIP+Backup+and+Restore#AIPBackupandRestore-Thedifferencebetween%22Submit%22and%22Restore/Replace%22modes

Hopefully that helps,

Tim

Reply all
Reply to author
Forward
0 new messages