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 On Sunday, October 13, 2024 at 12:40:31 PM UTC-5 [email protected] wrote: > 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 > > > > > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 view this discussion visit https://groups.google.com/d/msgid/dspace-tech/537f3af9-6d56-40e1-a060-306edfc0b143n%40googlegroups.com.
