MongoToFile - MongoDB export to files »

Download MongoToFile Free Trial »     Buy MongoToFile Now »

How to execute command line and scheduled for exporting MongoDB data

When you save session

MongoDB export to files - save session

Click "Save & Make Batch File"

MongoDB export to files - create batch file

Click "OK", you'll get batch file created, and you can run it in command line, like this:

C:
cd "C:\Users\pan\AppData\Local\Programs\MongoToFile"
MongoToFile session="C:\Users\pan\Documents\employees.uld" logfile="C:\Users\pan\Documents\employees.log"

	

Or click "Create & Schedule Task", you can run this batch file at a specific time and/or at a certain time every day. See this for detail: Schedule Task.