[精讚] [會員登入]
804

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

你可能感興趣的文章

在docker裡跑spring boot+mongo(二) 使用docker-compose 管理多個container 前篇使用docker run 一次建一個container

資料表更改為多個primary key, MariaDB [database]> describe TABLENAME; 想由本來是兩個PRIMARY KE

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

網站無障礙規範 https://accessibility.ncc.gov.tw/News/Detail/3238?Category=4

vim 特定範圍行數開頭加上# 註解 vim 特定範圍行數開頭加上# 註解

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

隨機好文

[vue.js] 動態的props 做parent-child components 雙向綁定 vue.js props components camel-case

ArrayList 與 HashMap 範例 public static void main(String[] args) { String titleIds = &

spring boot jpa 使用多個欄位排序 我有一entity 叫 team 資料欄下如下 @Id @GeneratedValue(strategy = Gener

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