[精讚] [會員登入]
543

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

你可能感興趣的文章

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

proxmox lxc 救援 今天突然接到一名強者我朋友的臨時求援 他說他把pve 從5.1升到5.2後, kvm的虛擬机器都沒問題 , 但是lxc的

[web] 自訂模組-打字機與跑馬燈效果 自訂模組-打字機效果

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

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

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

隨機好文

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

編碼的順序 utf8 big5

臺中市雲端校務系統與Windows AD帳號整合(5) 安裝java環境

刪除資料夾內的檔案 lambda 一行文 Arrays.stream(new File("/folder/path").

台中市校園空氣品質預警 aqi