I'm trying to write an XQUERY script to configure our production cluster (running ML 7.0-3) to replicate some of its databases to a new dev cluster.
My plan is to loop through the names of the production databases that I want replicated and call : *1. admin:database-foreign-replica($foreign-cluster-id, $foreign-db-id) *and *2. admin:database-set-foreign-replicas () * for each database. Question is, how do I determine *$foreign-db-id* at runtime ? I know before-hand its name (the same as the production database name), but I can't seem to find the right function to use to get the ID of that "foreign" database. Any ideas ? There is of course the option of me running a script on the dev cluster to generated the db IDs and copying them over to my master cluster script as hardcoded values, but I'm trying to avoid hardcoding as much as possible. Regards, Danny
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
