Hello  Rupinder,

You really don't have to use SAF or AIP for this migration since you own 
both systems ( old & new ). Both should work but It's time consuming and 
sometimes flaky. There is a faster and a shorter path. Try it and let us 
know in the list if you still need more help. I'll walk you through.

1) Dump the old database in a binary format ( pg_dump -Fc dspace > 
dspace-6x.sql ) and copy it along with the old assetstore to the new server.
2) su - posgres
3) Restore the database into the new server using ( pg_restore -v -c -d 
dspace dspace-6x.sql ). You might need to run ( [dspace]/bin/dspace 
database clean ) first and for this to work you need to add 
( db.cleanDisabled=false ) at the top of ( [dspace]/config/dspace.cfg ) and 
no need to restart tomcat.
4) exit
5) Run [dspace]/bin/dspace database migrate ignored
6) Check [dspace]/bin/dspace status & info
7) [dspace]/bin/dspace create-administrator
8) Copy the old assetstore folder to where it should be in the new server 
[dspace]/assetstore
9) Chown -R tomcat:tomcat [dspace]
10) systemctl restart tomcat & finally check if everything is O.K.

** You can if you need to or have to dump the database in a text format and 
run search and replace on it for anything ( old domain and URL's that has 
xmlui in it comes in mind ). Do it after finishing step 3 above.
a) su - postgres
b) Dump the databse in text format ( pg_dump -c dspace > 
dspace-migrated.sql )
c) Search and replace using ( sed, awk, perl, vi or any text edit you feel 
comfortable with ).
d) Restore it ( cat dspace.sql | psql -d dspace < dspace-migrated.sql )
 
Good luck


On Monday, January 9, 2023 at 7:11:11 AM UTC+3 [email protected] wrote:

> Can someone please help me with this? 
> I am planning for migration and am stuck on this. AIP backup and restore 
> are of no use because it throws too many errors. I found SAF to be simple 
> and reliable, but the only problem is with these conflicts of items 
> appearing in multiple collections. 
>
> Please help 
>
> Thank you
> Rupinder Singh
> On Tuesday, December 27, 2022 at 3:37:15 PM UTC+5:30 Rupinder Singh wrote:
>
>> I have a problem with SAF, as I am Migrating from Dspace 6.2 to DSpace 
>> 7.4. I exported my collections from DSpace 6.2, But as I upload the SAF 
>> items to my Dspace 7.4 everything goes ok, Except for the items which are 
>> part of multiple collections. The import process exists with an error 
>> saying that the Item/Handle Already Exists. 
>> How can I resolve this conflict? There are many items that appear is more 
>> than one collection in my existing Dspace 6.2.
>>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/dspace-tech/8f455ae0-8e69-4591-8332-32eb268d51d0n%40googlegroups.com.

Reply via email to