[精讚] [會員登入]
575

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 11 常用指令 CHKDSK 命令檢查和修復磁碟錯誤 chkdsk <磁碟代號>: 系統檔案檢查程式 sfc /scanno

proxmox zfs 建立異地備份與還原 zfs最吸引人的地方就是可以建立快照並傳輸到遠端机器, 達到增量備份, 並且隨時從任一備份檔還原 完全不怕勒索病毒 將v

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

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

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

[web]校園食材登錄平臺午餐食材嵌入頁面語法 校園食材登錄平臺午餐食材嵌入頁面語法

隨機好文

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

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

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

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

spring boot jpa 使用多個欄位排序 我有一entity 叫 team 資料欄下如下 @Id @GeneratedValue(strategy = Gener