I need to copy data from a MarkLogic 7 database to MarkLogic 9 database on another system. I tried backup and restore option provided by the MarkLogic Admin console. The original database in MarkLogic 7 had only 1 forest attached to it. I created a new database with the same name in MarkLogic 9. Also created a new forest in MarkLogic 9 with the same name as in MarkLogic 7 attached to it. I am not sure where i am doing it wrong.
Steps followed in detail:
<database_name>
-> Backup/Restore
tab<database_name>
-> Backup/Restore
tabOperation failed with error message:XDMP-BACKUPEMPTY: xdmp:database-restore((), "", (), fn:false(), (), fn:false(), (),"") -- No forests specified for backup or restore.. Check server logs.
While restoring the backup selecting the forest topology changed
to true worked for me. Thanks Michael Gardner for the comment.