[精讚] [會員登入]
775

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 一行產生私鑰及憑證請求檔

使用vbs設定windows 10 靜態IP setting static ip Set Adapter = GetObject("winmgmts:Win

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

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

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

臺中市雲端校務系統與Windows AD帳號整合(9) 3-2 Linux上隨系統開機啟動服務 以Centos 7 發行版為例 請注意, 此時提供服務的主机為Linux, 所以

隨機好文

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

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

vue.js component 在parent與child 傳值 component 在parent與child 傳值

00-F2 的 IPV6 反解設定 近日, 強者我的大神同事, line 傳來一句: igogo 上次你那個ipv6的設定檔 再幫我跑一次 如連結 程式都寫

Arrays.asList 後想再add出現 UnsupportedOperationException 這個問題真是搞死我了 List<String> fruits = Arrays.asList("a