[精讚] [會員登入]
655

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

你可能感興趣的文章

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

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

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

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

台中市網路應用競賽試場安排(一) 排試場就跟排班或是排課表一樣, 找不到一個都能讓所有人滿意的結果

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

隨機好文

利用maven建立一個可執行的jar檔 利用maven建立一個可執行的jar檔

vim 特定範圍行數開頭加上# 註解 vim 特定範圍行數開頭加上# 註解

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

用java讀取microbit寫到serial的資料 用java讀取microbit寫到serial的資料

python 解析資料, 輸入並輸出 database, csv, pdf(二) 延續上篇 https://n.sfs.tw/content/index/16452 parse html class B