[精讚] [會員登入]
709

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

你可能感興趣的文章

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

如何檢查網站憑證是否過期 檢查網站憑證

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

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

[shell script] 批次判斷domain name 正解設定 判斷dns 正解設定

使用expect及 openssl 產生SSL 憑證簽署要求 每年都要製做tls 憑證 二十幾張, 此語法利用expect 產生私錀及憑證請求檔 #!/usr/bin/expect

隨機好文

java-身份証字號驗証 FormatCheck.java public class FormatCheck { private volatile

vue.js components 多個組件的呈現 vue.js 組件 component

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

java lambda files filter java, files filter, lambda

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