[精讚] [會員登入]
807

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

你可能感興趣的文章

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

openldap資料移到 docker 拉docker 上的 image 回來 docker pull osixia/openldap 在正在運行的openld

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

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

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

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

隨機好文

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

[vue.js] 動態的props 做parent-child components 雙向綁定 vue.js props components camel-case

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

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

2018 hoc 頒獎 校慶到了,啦啦隊比賽如火如荼展開,學務主任將頒發獎狀給表現優異的班級。請完成以下程式碼,讓程式將啦啦隊表演成績由高至低依序輸出。