MongoDB:mongodb的備份和恢複

來源:互聯網
上載者:User

mongodb的備份和恢複在mongodb中有3種方式。1、直接copy。2、


mongodump -d admin -o F:\mongodb

我們將匯出的資料放在admin目錄下。

參數解釋:

(2)

mongorestore -d admin --dorp F:\mongodb\admin


(3)、主從複製

主從複製前面咱們已經講過啦,具體請參考我這文章:mongodb的主從複製(一)http://blog.csdn.net/jessonlv/article/details/17587723

mongodb的主從複製(二) 複本集    http://blog.csdn.net/jessonlv/article/details/17709339

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.