Copy Command Line Options
This section summarizes the command line options available with the mlcp copy
command. The following command line options define your connection to MarkLogic:
Option |
Description |
---|---|
|
Required. A comma-separated list of hosts through which mlcp can connect to the source database. You must specify at least one host. For more details, see How mlcp Uses the Host List. |
|
Password for the MarkLogic Server user specified with |
|
Port number of the source MarkLogic Server. There should be an XDBC App Server on this port. Default: 8000. |
|
MarkLogic Server user with which to export documents. Required, unless using Kerberos authentication. |
|
Required. A comma separated list of hosts through which mlcp can connect to the destination database. You must specify at least one host. For more details, see How mlcp Uses the Host List. |
|
Password for the MarkLogic Server user specified with |
|
Port number of the destination MarkLogic Server. There should be an XDBC App Server on this port. Default: 8000. |
|
MarkLogic Server user with which to import documents to the destination. Required, unless using Kerberos authentication. |
The following table lists command line options that define the characteristics of the copy operation:
Option |
Description |
---|---|
|
The number of documents to load per request to MarkLogic Server. Default: 100. Maximum: 200. |
|
A comma-separated list of collection URIs. mlcp exports only documents in these collections, plus related metadata. This option may not be combined with |
|
Whether to copy document collections from the source database to the destination database. Default: |
|
Whether to copy document key-value metadata from the source database to the destination database. Default: |
|
Whether to copy document permissions from the source database to the destination database. Default: |
|
Whether to copy document properties from the source database to the destination database. Default: |
|
Whether to copy document quality from the source database to the destination database. Default: |
|
A comma-separated list of database directories. mlcp exports only documents from these directories, plus related metadata. Directory names should usually end with “/”. This option may not be combined with |
|
Specifies an XPath expression used to select which documents are extracted from the source database. The XPath expression should select fragment roots. This option may not be combined with |
|
Whether or not to force optimal performance, even at the risk of creating duplicate document URIs. See Time vs. Correctness: Understanding -fastload Tradeoffs. Default: |
|
The name of the source database. Default: The database associated with the source App Server identified by |
|
Enable/disable SSL secured communication with the input App Server. Default: false. If you set this option to true, your App Server must be SSL enabled. For details, see Connecting to MarkLogic Using SSL. |
|
Specify the protocol mlcp should use when creating an SSL connection to the input App Server. You must include this option if you use the |
|
The maximum number of document fragments processed per split. Default: 20000 in local mode. |
|
Copy mode. Accepted values: Default: |
|
Specify an options file pathname from which to read additional command line options. If you use an options file, this option must appear first. For details, see Options File Syntax. |
|
A comma separated list of collection URIs. Output documents are added to these collections. |
|
The name of the destination database. Default: The database associated with the destination App Server identified by |
|
A comma separated list of ( |
|
The name of the database partition in which to create documents. Required when using range assignment policy. For details, see How Assignment Policy Affects Optimization and Range Partitions in Administrating MarkLogic Server. |
|
The quality to assign to output documents. |
|
Enable/disable SSL secured communication with the output App Server. Default: false. If you set this option to true, your App Server must be SSL enabled. For details, see Connecting to MarkLogic Using SSL. |
|
Specify the protocol mlcp should use when creating an SSL connection to the output App Server. You must include this option if you use the |
|
Specify a prefix to prepend to the default URI. Used to construct output document URIs. For details, see Controlling Database URIs During Ingestion. |
|
A comma-separated list of ( |
|
Specify a suffix to append to the default URI Used to construct output document URIs. For details, see Controlling Database URIs During Ingestion. |
|
Specifies one or more namespace prefix bindings for namespace prefixes usable in path expressions passed to |
|
Specifies a query to apply when selecting documents to be copied. The argument must be the XML serialization of a cts:query or JSON serialization of a cts.query. Only documents in the source database that match the query are considered for copying. For details, see Controlling What is Exported, Copied, or Extracted. False postives are possible; for details, see Understanding When Filters Are Accurate. |
|
Apply one or more redaction rule collections. The argument must be a comma-separated list of rule collection URIs. The rule collections must be installed in the schemas database on the source MarkLogic installation. For details and example, see Redacting Content During Export or Copy Operations and Redacting Document Content in the Application Developer’s Guide. |
|
Restrict mlcp to connect to the source database only through the hosts listed in the |
|
Restrict mlcp to connect to the destination database only through the hosts listed in the |
|
Whether or not to use a consistent point-in-time snapshot of the source database contents. Default: |
|
A temporal collection into which the documents are to be loaded in the destination database. For details on loading temporal documents into MarkLogic, see Using MarkLogic Content Pump (mlcp) to Load Temporal Documents in the Temporal Developer’s Guide. |
|
The number of threads to spawn for concurrent copying. The total number of threads spawned by the process can be larger than this number, but this option caps the number of concurrent sessions with MarkLogic Server. Only available in |
|
When loading documents into the destination database, the number of requests to MarkLogic Server in one transaction. Default: 1. Maximum: 4000/actualBatchSize. |
|
The local name of a custom content transformation function installed on MarkLogic Server. Ignored if |
|
The path in the modules database or modules directory of a custom content transformation function installed on MarkLogic Server. This option is required to enable a custom transformation. For details, see Transforming Content During Ingestion. |
|
The namespace URI of the custom content transformation function named by |
|
Optional extra data to pass through to a custom transformation function. Ignored if |