当前位置:网站首页>MongoDB的备份与恢复
MongoDB的备份与恢复
2022-08-08 06:23:00 【编程工人】
注:在备份与恢复前要先启动你的mongod服务
mongodump 数据备份
在Mongodb中我们使用mongodump命令来备份MongoDB数据。该命令可以导出所有数据到指定目录中。
mongodump命令可以通过参数指定导出的数据量级转存的服务器。
语法:
1 |
|
参数说明:
1 2 3 4 5 6 |
|
实例:
1 2 |
|
mongodump 命令可选参数:
1 2 3 4 5 |
|
mongorestore 数据恢复
语法:
1 |
|
参数说明:
1 2 3 4 5 6 7 8 9 10 |
|
实例,将之前备份的form1恢复到form2中:
1 2 |
|
边栏推荐
- MySQL高级
- 用原生js写轮播图(并实现手动及自动切换图片)
- demo:数组方法-商品查询
- cybox靶机wp
- [BSidesCF 2020] Had a bad day1
- 在AWS CodeBuild中更新Lambda导致进程被占用(status error 255)的解决方案
- 总结:numpy常用方法
- 我的第一篇博客
- Consumer Goods Industry Report: Research Analysis and Development Prospect Forecast of Cosmetic Container Market Status
- Instant Noodle Industry Survey: Expected to Reach $43.6 Billion in 2028
猜你喜欢
随机推荐
Food Industry Report: Research Analysis and Development Prospect Forecast of Chili Market
消费品行业报告:化妆品容器市场现状研究分析与发展前景预测
Analysis of the status quo of the chemical industry: the polyolefin market consumption is nearly 200 million tons
Mybaits笔记
什么是原型图设计?
C语言初阶阶段的重难点知识总结
COSMIC: COmmonSense knowledge for eMotion Identification in Conversations
cengBox靶机wp
Map和Set
hyperledger-fabric documention官方文档
植物香料市场调研:2022年中国市场发展现状及经营模式分析
节流与防抖
1.Mysql索引的原理
MySQL基础
UXDB lost the database password, how to recover?
Summary: Common methods of numpy
摔倒检测综述
CUDA10安装支持gpu的tensorflow版本
3.多线程两种实现方式的区别
Mysql(三)



![[WUSTCTF2020]CV Maker1](/img/be/989b1ea8597f31f4b82c2edc6345d5.png)




![[BSidesCF 2020] Had a bad day1](/img/18/872d1c4a87608c618d2add0a65c4ba.png)
