Want to export multiple MongoDB collections to 1 TXT (“|” pipe delimited text) file?
Using MongoToFile, a native GUI tool, you can export multiple MongoDB collections to a single TXT (“|” pipe delimited text) file 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.
Start MongoToFile, connect to MongoDB.
Click “Export Similar Collections” at task dialog.
Select “TXT” file type.
1. Select MongoDB collections to export.
2. Set TXT (“|” pipe delimited text) options.
3. Summary.
4. Export multiple MongoDB collections to one TXT (“|” pipe delimited text) file.
After exporting, you can view output TXT (“|” pipe delimited text) file.
Save/load session
You can save/load session to run “MongoDB collections to single TXT (“|” pipe delimited text) file” conversion repeatly.
1.Save Session.
Click “Save Session” button, then enter a session file name.
click “OK” button.
2.Load Session.
Click the “Open a Saved Session” in task window, select a session file.
then show the wizard form, click a few “Next” to export MongoDB collections to single TXT (“|” pipe delimited text) file.
Run in command line
You can run “MongoDB collections to single TXT (“|” pipe delimited text) file” conversion in command line.
When you save session, you can click “Save & Make Batch File”.
The “Save & Make Batch File” form shows.
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.uls" 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 single TXT (“|” pipe delimited text) file” 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.
And then, with scheduled task wizard, step by step.
You’ll see created task listed in scheduled task list.
Download
Here you can download MongoToFile, and buy MongoToFile.