Batch export MongoDB collections to JSON files

by

Want to batch export MongoDB collections to JSON files?

Using MongoToFile, a native GUI tool, you can batch export MongoDB collections to JSON files easily and fast, no need to program, just a few mouse clicks!

Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.

Support Windows, Linux, macOS.

Here’s how to.

Export

Please download and install MongoToFile, then run it.

Click “Export All Collections” at task dialog.

Batch export MongoDB collections to JSON files - task window

then show the wizard.

Select “JSON” file type.

Batch export MongoDB collections to JSON files - select type

1. Select MongoDB collections to export.

Batch extract MongoDB collections to JSON files - select a collections

2. Set JSON options.

Batch dump MongoDB collections to JSON files - config JSON files

3. List collections to be exported.

Batch unload MongoDB collections to JSON files - select collections

4. Summary.

Batch convert MongoDB collections to JSON files - summary

5. Batch export MongoDB collections to JSON files.

Batch export MongoDB collections to JSON files - convert files

After exporting, you can view output JSON files.

Batch unload MongoDB collections to JSON files - view JSON file

Save/load session

You can save/load session to run “MongoDB collections to JSON files” conversion repeatly.

1.Save Session.

Click “Save Session” button, then enter a session file name.

Bulk Export MongoDB collections to JSON files - save session

click “OK” button.

2.Load Session.

Click the “Open a Saved Session” in task window, select a session file.

Bulk Export MongoDB collections to JSON files - load session

then show the wizard form, click a few “Next” to export MongoDB collections to JSON files.

Bulk Export MongoDB collections to JSON files - start session

Run in command line

You can run “MongoDB collections to JSON files” conversion in command line.

When you save session, you can click “Save & Make Batch File”.

Bulk Export MongoDB collections to JSON files - save session

The “Save & Make Batch File” form shows.

Bulk Export MongoDB collections to JSON files - create batch file

Click “OK” button, you’ll create a batch file, in Windows, like this:

C:
cd "C:\Users\pansh\AppData\Local\Programs\MongoToFile"
MongoToFile task="C:\Users\pansh\Documents\test.ula" logfile="C:\Users\pansh\Documents\test.log"

You can run this batch file in command line.

Run as scheduled task

You can run “MongoDB collections to JSON files” conversion automatically at specific time.

On Linux/macOS, you can use Crontab.

For macOS, How to Fix Cron Permission Issues in macOS.

On Windows, in “Save & Make Batch File” form, you can click “Create & Schedule Task” to set a scheduled task.

Bulk Export MongoDB collections to JSON files - create batch file

And then, with scheduled task wizard, step by step.

Bulk Export MongoDB collections to JSON files - scheduled task application

Bulk Export MongoDB collections to JSON files - scheduled task name

Bulk Export MongoDB collections to JSON files - scheduled task time

Bulk Export MongoDB collections to JSON files - scheduled task user

Bulk Export MongoDB collections to JSON files - scheduled task information

You’ll see created task listed in scheduled task list.

scheduled task list

Download

Here you can download MongoToFile, and buy MongoToFile.

Download MongoToFile Download MongoToFile