I need to confirm the process to copy a database from a Linux ML 9.x server to a Windows ML 9.x server and wanted to make sure I understood properly.
Apparently I cant use a backup of a ML database taken on a Linux to restore onto a Windows server.
Here is what I think the high level process is and would welcome correction/assistance please :
On Linux source server :
(1) Export the database configuration on source server ( to file )
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $config := admin:database-copy($config,xdmp:database("<The_existing_db>"),"<The_new_database>")
(2) Export all forest structures on source servers ( to file - where are these stored on disk? )
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $config := admin:forest-copy($config,xdmp:forest("<original_forest>"),"<forest_copy>",())
(3) Export source data using mlcp ( to file/s - or db? )
On Windows destination server :
(4) Create new database from exported configuration files (5) Create forests from exported forest configuration files & attach to database (6) Import data using mlcp from exported files
Have I missed anything / got it wrong?
Thanks in advance.