Export Command Line Options
This section summarizes the command line options available with the mlcp export
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 destination MarkLogic Server. 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 from which to export documents. Required, unless using Kerberos authentication. |
The following table lists command line options that define the characteristics of the export
operation:
Option |
Description |
---|---|
|
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 or not to compress the output document. Only applicable when |
|
The character encoding of output documents when |
|
When exporting documents to an archive, whether or not to copy collections to the destination. Default: |
|
When exporting documents to an archive, whether or not to copy key-value metadata to the destination. Default: |
|
When exporting documents to an archive, whether or not to copy document permissions to the destination. Default: |
|
When exporting documents to an archive, whether or not to copy properties to the destination. Default: |
|
When exporting documents to an archive, whether or not to copy document quality to the destination. Default: |
|
The name of the source database. Default: The database associated with the source App Server identified by |
|
A comma-separated list of database directory names. 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 exported from the database. The XPath expression should select fragment roots. This option may not be combined with |
|
Whether to pretty-print XML output. Default: |
|
Password to a Java KeyStore containing the User Private Key(s) and Certificate(s); if available mlcp will select the first available certificate from the KeyStore that satisfy the TLS Certificate Request from the MarkLogic Server. Can be passed along with the existing |
|
Path to a Java KeyStore containing the User Private Key(s) and Certificate(s); if available mlcp will select the first available certificate from the KeyStore that satisfy the TLS Certificate Request from the MarkLogic Server. Can be passed along with the existing |
|
The maximum number of document fragments processed per split. Default: 20000 in local mode. |
|
The maximum number of threads that run mlcp. This command line option is optional. |
|
Export mode. Accepted values: |
|
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. |
|
Destination directory where the archive or documents are saved. The directory must not already exist. |
|
The type of output to produce. Accepted values: |
|
Specifies one or more namespace prefix bindings for namespace prefixes usable in path expressions passed to |
|
Specifies a query to apply when selecting documents for export. The argument must be the XML serialization of a cts:query or JSON serialization of a cts.query. Only documents matching the query are considered for export; false positives are possible. For details, see Controlling What is Exported, Copied, or Extracted. |
|
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. 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 MarkLogic only through the hosts listed in the |
|
Whether or not to export a consistent point-in-time snapshot of the database contents. Default: |
|
Enable/disable SSL secured communication with MarkLogic. 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 MarkLogic. You must include this option if you use the |
|
The number of threads to spawn for concurrent exporting. 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 |
|
Password to a Java TrustStore containing any necessary CA Certificates needed to verify the TLS Server Authentication connection. If no TrustStore is provided the default TrustStore used by the existing Can be passed along with the existing |
|
Path to a Java TrustStore containing any necessary CA Certificates needed to verify the TLS Server Authentication connection. If no TrustStore is provided the default TrustStore used by the existing Can be passed along with the existing |