Reputation: 133
I am using this command to save output to a file.
mongorestore --host %computerName%:%_portnumber% -u Admin -p user --oplogReplay %_sourceFolder% >> D:\Data\admin\abc.log
This creates an empty file and all the output is listed on the command prompt.
Is there a way to get the output to a file? Any help is greatly appreciated.
Upvotes: 6
Views: 5885