Import and Export Dump Files to MongoDB

Import and Export Dump Files to MongoDB

MongoDB dump files can be imported and exported in two ways: with a MongoDB desktop client or through the RockMongo administration GUI. The source guide uses Database Master 4 as the desktop-client example.

Public IP requirement: when using a desktop MongoDB client, the MongoDB node must have the Public IP feature enabled.

MongoDB Client (Database Master)

Connect remotely to MongoDB using a compatible desktop client. The source uses Database Master 4 to demonstrate both import and export.

Dump Import to MongoDB

1

Open Import

After establishing the remote MongoDB connection, click Import in Database Master and choose the type of file to import.

Database Master file import
Open Import in Database Master and select the file type to import.
2

Select the source and log files

Browse for the required XML or CSV file. Then select a log file.

Browse XML and log file
Select the XML/CSV source file and a log file.
3

Merge source and target tables

Map or merge the source tables with the required target tables and proceed with the import.

Merge source and target tables
Map or merge the source tables to the target tables.
XML import success
The MongoDB import completes successfully.
4

Verify the imported data

Return to the platform dashboard, open MongoDB in a web browser, and confirm that the imported dump is available in the test directory.

Check imported dump
Verify the imported data in the test directory through the MongoDB administration panel.

Dump Export from MongoDB

1

Open Data Export

In Database Master, click Export > Data Export.

Database Master data export
Open Export and choose Data Export.
2

Select the target folder and tables

Browse to the folder where the exported data should be saved and select the tables to export.

Select tables for export
Choose the target folder and tables to export.
3

Configure export options

Select the required data-export options and click Finish.

Data export options
Configure export options and finish the operation.
4

Verify the exported data

When the operation finishes successfully, open the selected target folder and confirm that the exported files are present.

Data export success
The MongoDB export completes successfully.

RockMongo Admin Panel

The source also describes importing and exporting directly from the MongoDB web administration interface.

1

Open MongoDB in the browser

Click Open in Browser for the MongoDB node in the environment.

Open MongoDB in browser
Open the MongoDB administration panel from the platform dashboard.
2

Log in

Enter the MongoDB credentials that were sent by email after the MongoDB node was created.

3

Use Import or Export

Use the corresponding Import or Export buttons in the RockMongo administration panel.

RockMongo import and export
Use the Import and Export controls in the RockMongo administration interface.

Expected Result

MongoDB data can be imported from XML/CSV files and exported to a local target folder through Database Master, or managed directly with the Import and Export functions available in the RockMongo administration panel.

Important Notes

  • The source documents two methods: a MongoDB desktop client and the RockMongo administration GUI.
  • Database Master 4 is used as the desktop-client example.
  • A Public IP is required on the MongoDB node when using the desktop-client workflow.
  • The documented import example uses XML/CSV files.
  • After import, verify the data through the MongoDB web administration panel.
  • For export, select the target folder, tables, and data-export options before finishing.
  • RockMongo requires the MongoDB credentials sent after node creation.

What’s Next?

  • MongoDB Auto-Clustering
  • MongoDB Backup/Restore Add-On
  • MongoDB Encryption in Transit Add-On
  • MongoDB Remote Access