how can i export all documents from one DB to another DB in marklogic? I mean from one environment to another environment. Like SIT to UAT. Which is the best way to do it?
Asked
Active
Viewed 206 times
-1
-
Besides MLCP, there is Backup/Restore and DB Replication, and Flexible Replication. – Mike Gardner Sep 20 '19 at 18:43
1 Answers
2
MarkLogic Content Pump supports three commands: import, export, and copy. Sounds like you want to copy. You specify the connection information for the input and output sides, along with any filters you might want to constrain which documents to copy. You'll also want to decide whether to copy permissions, collections, and a few other options (probably yes).
The Copying Content Between Databases section of the MLCP Guide has basic steps, examples, and a full command line option reference.

Dave Cassel
- 8,352
- 20
- 38
-
We tried this but we're facing some privilege issue. So, is there any other method to export documents? – Deepan Chelliah Sep 20 '19 at 07:33
-
@DeepanChelliah can you elaborate on that? If you need more space, you can edit your question to add details there.. – grtjn Sep 20 '19 at 08:06
-
@grtjn basically we need to move all the documents from SIT environment to UAT environment. We can't use mlcp copy method as there was some user privilege issue. So is there any other way we can do it? – Deepan Chelliah Sep 20 '19 at 10:57
-
1
-
@DaveCassel : Hi sir, please help me for https://stackoverflow.com/questions/58541604/how-to-connect-github-desktop-with-cpanel – sqlchild Oct 24 '19 at 12:53