[精讚] [會員登入]
567

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

mongo備份指令 mongodump --host localhost --port 27017 --username root --db

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

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

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

雲端校務系統與OPENLDAP帳號整合(1) 本文件目標是為做單一帳號整合, 使用校端更改密碼服務, 將雲端校務系統的帳密同步至校內LDAP server, 並讓SA

隨機好文

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

資料表更改為多個primary key, MariaDB [database]> describe TABLENAME; 想由本來是兩個PRIMARY KE

00-F2 的 IPV6 反解設定 近日, 強者我的大神同事, line 傳來一句: igogo 上次你那個ipv6的設定檔 再幫我跑一次 如連結 程式都寫

scratch3 計算得分排名 scratch3 得分排名

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