879

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

你可能感興趣的文章

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

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

如何檢查網站憑證是否過期 檢查網站憑證

centos 7 移机出現 dracut-initqueue timeout centos 7 移机出現 dracut-initqueue timeout 處理

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

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

隨機好文

apache 反向代理 80轉443轉8080 apache, proxy pass

臺中市雲端校務系統與Windows AD帳號整合(6) 修改Windows AD 密碼原則

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

將google試算表當作簡易資料庫,利用Google apps cript 在網頁上操作查詢 將google試算表當作簡易資料庫,利用apps cript 在網頁上操作查詢 若我有一試算表資料 縣市 status

刪除資料夾內的檔案 lambda 一行文 Arrays.stream(new File("/folder/path").

精讚::