904

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

你可能感興趣的文章

管理Google共用雲端硬碟 管理Google共用雲端硬碟

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

如何在docker 的nginx 做另一個container的反向代理 環境 docker 中一container 跑 nginx 對外服務80 port, http://server 另一c

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

利用expect script 查詢ap數量,再送到google sheet及line群組通知 利用expect script 查詢ap數量

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

隨機好文

[vue.js] input event Form-Input-Components-using-Custom-Events

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 送資料

apache 反向代理 80轉443轉8080 apache, proxy pass

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

精讚::