Or, in this case, you can just use the Admin api database-copy function, which 
I think does exactly what you want:

https://docs.marklogic.com/admin:database-copy

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Garrow, Heather
Sent: Monday, June 17, 2013 8:26 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Script for ML Database Configuration

I've done this from the exported XML by changing the <name> (line 11 from my 
export) to my new database name, then using the import function to load the 
changes.

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mohanraj Chozhan
Sent: Monday, June 17, 2013 10:28 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Script for ML Database Configuration

For example, I have database name as Test  with full setup of configuration. I 
want to create another database with the existing same configuration in the 
same environment.

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of 
santhosh.rajasekar...@cognizant.com<mailto:santhosh.rajasekar...@cognizant.com>
Sent: Monday, June 17, 2013 7:44 PM
To: general@developer.marklogic.com<mailto:general@developer.marklogic.com>
Subject: Re: [MarkLogic Dev General] Script for ML Database Configuration

Hi Mohan,
                Your statement is little confusing, can you brief what you are 
trying to do?

Thanks & Regards,
Santhosh Rajasekaran,
“Think twice before you start programming or you will program twice before you 
start thinking.”

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mohanraj Chozhan
Sent: Monday, June 17, 2013 7:30 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Script for ML Database Configuration

Thanks, In the same database shall we create the another database with the 
existing script. Is it possible

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of 
santhosh.rajasekar...@cognizant.com<mailto:santhosh.rajasekar...@cognizant.com>
Sent: Monday, June 17, 2013 7:26 PM
To: general@developer.marklogic.com<mailto:general@developer.marklogic.com>
Subject: Re: [MarkLogic Dev General] Script for ML Database Configuration

Hi Mohan,

                You can export the configuration of a particular DB/ Appserver 
which is already present in ML via “Configuration Manager”, that will give you 
an xml containing all the config / index settings for that database/ Appserver.

http://<ip>:8002/nav/?type=databases<http://%3cip%3e:8002/nav/?type=databases>

Note: provide correct ip of your ML server in the above url, there you can see 
the

You can import it to any other environment. (You will get whole configuration 
of the DB/ Appserver)

Hope this will help you.

Thanks & Regards,
Santhosh Rajasekaran,
“Think twice before you start programming or you will program twice before you 
start thinking.”
Vnet: 466749 ,Cell : +91 9600025142
Location : Chennai, MEPZ

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Mohanraj Chozhan
Sent: Monday, June 17, 2013 7:18 PM
To: general@developer.marklogic.com<mailto:general@developer.marklogic.com>
Subject: [MarkLogic Dev General] Script for ML Database Configuration

Hi,

How to generate the ML Database Configuration Script for already present in ML.

I need to total configuration scripts including index setup.

Could you please help on this.

Regards,
Mohanraj

**************** CAUTION - Disclaimer *****************

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS******** End of Disclaimer ********INFOSYS***


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to