[精讚] [會員登入]
800

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 scirpt 批次建立samba使用者 建立一csv檔, 兩個欄位如下 5101,532 5102,592 5103,321 第一欄為帳號使用班級加座號, 第二

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

利用expect script 查詢ap數量,再送到google sheet及line群組通知 利用expect script 查詢ap數量

使用expect 讀取外部資料存成陣列 使用expect 讀取外部資料存成陣列

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

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

隨機好文

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

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

java.time 時間 instant java.time

hoc2018灑水機器人 灑水機器人的工作是替行道樹灑水,機器人的灑水範圍有限(左前方、左方、左後方),請寫程式控制機器 人判斷須灑水的狀況。每顆

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