T:\mongodb\bin\mongodump.exe -h 127.0.0.1 -d BRM_Message -u saadmin -p L123 -o "d:\backup\mongobak\%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%"mongorestore -h 127.0.0.1 -d BRM_Message --directoryperdb /backup/mongobak/3/ -u saadmin -p L12
T:\mongodb\bin\mongodump.exe -h 127.0.0.1 -d BRM_Message -u saadmin -p L123 -o "d:\backup\mongobak\%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%" mongorestore -h 127.0.0.1 -d BRM_Message --directoryperdb /backup/mongobak/3/ -u saadmin -p L123
Backup and Restore with MongoDB Tools
原文地址:mongodb备份与恢复, 感谢原作者分享。