[精讚] [會員登入]
606

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

你可能感興趣的文章

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

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

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

臺中市雲端校務系統與Windows AD帳號整合(7) 設定校端更改密碼程式及執行

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

ubuntu ufw ufw 簡易筆記 原則禁止,例外開放 ufw default deny 啟動ufw sudo ufw enable 關掉

隨機好文

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

python 的RE python re

找尋多個文件夾中最新檔案(jpg,png,txt)並複製到nexus資料夾 找尋多個文件夾中最新檔案(jpg,png,txt)並複製到集中資料夾

windows ad 如何得知 dn 值 如何得知 windows ad 上的使用者dn 值 https://support.symantec.com/en_US

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