[精讚] [會員登入]
707

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

你可能感興趣的文章

[shell script] 批次判斷domain name 正解設定 判斷dns 正解設定

[web]校園食材登錄平臺午餐食材嵌入頁面語法 校園食材登錄平臺午餐食材嵌入頁面語法

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

在docker裡跑spring boot+mongo(一) 系統安裝docker ce centos7 + docker ce https://docs.docker.com/in

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

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

隨機好文

download a file from spring boot controllers ownload a file from spring boot controllers

axios vuejs application/x-www-form-urlencoded 送資料 VUE.JS 以 application/x-www-form-urlencoded 送資料

在docker裡跑spring boot+mongo(一) 系統安裝docker ce centos7 + docker ce https://docs.docker.com/in

[web]校園食材登錄平臺午餐食材嵌入頁面語法 校園食材登錄平臺午餐食材嵌入頁面語法

如何檢查網站憑證是否過期 檢查網站憑證