Powered by Zoomin Software. For more details please contactZoomin

MarkLogic Content Pump (mlcp)

Examples

  • Last Updated: April 14, 2026
  • 1 minute read
    • MarkLogic Server
    • Version 10.0
    • Documentation

This example copies all documents and their metadata from the source database to the destination database:

# Windows users, see Modifying the Example Commands for Windows
$ mlcp.sh copy -mode local -input_host srchost -input_port 8000 \
    -input_username user1 -input_password password1 \
    -output_host desthost -output_port 8010 -output_username user2 \
    -output_password password2

This example copies selected documents, excluding the source permissions and adding the documents to 2 new collections in the destination database:

# Windows users, see Modifying the Example Commands for Windows
$ mlcp.sh copy -mode local -input_host srchost -input_port 8000 \
    -input_username user1 -input_password password1 \
    -output_host desthost -output_port 8000 -output_username user2 \
    -output_password password2 -copy_permissions false \
    -output_collections shakespeare,plays

For an example of using -query_filter, see Example: Exporting Documents Matching a Query.

TitleResults for “How to create a CRG?”Also Available inAlert