[精讚] [會員登入]
581

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

你可能感興趣的文章

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

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

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

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

shell scirpt 批次建立samba使用者 建立一csv檔, 兩個欄位如下 5101,532 5102,592 5103,321 第一欄為帳號使用班級加座號, 第二

tmux 將終端機切割成多個視 窗 tmux, multiple terminal

隨機好文

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

雲端校務系統與OPENLDAP帳號整合(2) openldap,雲端校務

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

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

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