I use this command to save the 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 output is indicated on the command line.
Is there any way to get output to a file? Any help is appreciated.
source
share