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