Some notes

https://www.lifewire.com/net-command-2618094

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/rd

2019  NWYXM-TVJHK-RV6P3-VCQ7Y-YWT64

RestoreMongodb.js
mongodump --sslAllowInvalidCertificates --uri "mongodb://siteRootAdmin:pass1234@HKDBSUWV002:29031,HKDBSUWV002:29032,HKDBSUWV002:29033/Mark?ssl=true&replicaSet=rs_DigitalMaker&readPreference=primaryPreferred&authSource=admin" -o c:/mongodb_backup/
mongorestore --sslAllowInvalidCertificates --uri "mongodb://siteRootAdmin:[email protected]:29031,HKDBSUWV004.uat.cn.asia.ad.pwcinternal.com:29032,HKDBSUWV004.uat.cn.asia.ad.pwcinternal.com:29033/?ssl=true" C:\mongodb_backup

mongodump --h localhost:29031 -u=siteRootAdmin -p=pass1234 --authenticationDatabase admin -d PwCGlobal_ProposalLibrary -c TEST2 -o c:/mongodb/backup0326
mongorestore -h localhost:29031 -u=siteRootAdmin -p=pass1234 --authenticationDatabase admin -d PwCGlobal_ProposalLibrary -c TEST2 c:/mongodb/backup0326/PwCGlobal_ProposalLibrary/TEST2.bson

猜你喜欢

转载自www.cnblogs.com/kevin1988/p/12217332.html