[精讚] [會員登入]
607

mongo備份指令

mongodump --host localhost --port 27017 --username root --db

分享此文連結 //n.sfs.tw/15771

分享連結 mongo備份指令@igogo
(文章歡迎轉載,務必尊重版權註明連結來源)
2022-04-13 14:17:05 最後編修
2022-04-13 11:40:16 By igogo
 

 

備份

mongodump --host localhost --port 27017 --username root --db google_service --authenticationDatabase admin

 

 

還原

mongorestore  --host localhost --port 27017 --username root --authenticationDatabase admin --nsInclude=google_service.* dump/

 

 

 

參考

https://www.bmc.com/blogs/mongodb-mongorestore/

END

你可能感興趣的文章

windows 使用 command 移除程式 使用 command 移除程式

臺中市雲端校務系統與Windows AD帳號整合(7) 設定校端更改密碼程式及執行

[web]空氣品質嵌入頁面語法 空氣品質, aqi, ajax

centos 7 移机出現 dracut-initqueue timeout centos 7 移机出現 dracut-initqueue timeout 處理

利用openssl 一行文產生私鑰及憑證請求檔 openssl 一行產生私鑰及憑證請求檔

使用expect 讀取外部資料存成陣列 使用expect 讀取外部資料存成陣列

隨機好文

臺中市雲端校務系統與Windows AD帳號整合(3) LDAP的基本概念

tc web 問與答 Q. 填報網址 A. https://tiny.cc/tc-web Q. 出現了以下畫面, 怎麼辦 A. 建議瀏覽器開無

Google sheet 建立成績單的總分及排名並提供名字下拉查詢 Google sheet, sum, rank, pull down list

利用openssl 一行文產生私鑰及憑證請求檔 openssl 一行產生私鑰及憑證請求檔

關閉chrome不小心按到的訂閱通知 https://support.google.com/chrome/answer/3220216?hl=zh-Hant&