当前位置:Gxlcms > mysql > mongodb备份与恢复

mongodb备份与恢复

时间:2021-07-01 10:21:17 帮助过:27人阅读

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

人气教程排行