MongoDB的备份方式
2015-03-30 20:37
225 查看
options:
--help produce help message
-v [ --verbose ] be more verbose (include multiple times for more verbosity e.g. -vvvvv)
--version print the program‘s version and exit
-h [ --host ] arg mongo host to connect to ( <set name>/s1,s2 for sets)
--port arg server port. Can also use --host hostname:port
--ipv6 enable IPv6 support (disabled by default)
-u [ --username ] arg username
-p [ --password ] arg password
--authenticationDatabase arg user source (defaults to dbname)
--authenticationMechanism arg (=MONGODB-CR)
authentication mechanism
--dbpath arg directly access mongod database files in the given path, instead of
connecting to a mongod server - needs
to lock the data directory, so cannot
be used if a mongod is currently
accessing the same path
--directoryperdb each db is in a separate directly
(relevant only if dbpath specified)
--journal enable journaling (relevant only if dbpath specified)
-d [ --db ] arg database to use
-c [ --collection ] arg collection to use (some commands)
-f [ --fields ] arg comma separated list of field names e.g. -f name,age
--fieldFile arg file with fields names - 1 per line
-q [ --query ] arg query filter, as a JSON string
--csv export to csv instead of json
-o [ --out ] arg output file; if not specified, stdout is used
--jsonArray output to a json array rather than one object per line
-k [ --slaveOk ] arg (=1) use secondaries for export if available, default true
--forceTableScan force a table scan (do not use $snapshot)
相关文章推荐
- mongodb全量备份,简单的实现方式
- 简要说一下MongoDB的备份方式:
- 浅谈MongoDB的备份方式
- 浅谈MongoDB的备份方式
- Windows中添加Mongodb定时备份任务(采用bat脚本导入xml计划任务的方式)
- MongoDB的备份方式
- mongodb的数据恢复和备份方式
- Lan Free及Server Free备份方式读解
- 教你如何克隆Oracle 10g数据库,冷备份方式 (转载)
- catalog方式的rman备份与恢复示例
- redis 主从配置实例、注意事项、及备份方式
- SQL Server中使用数据库快照的方式来完成测试环境中数据库的轻量级备份还原操作
- MongoDB备份-mongodump和恢复-mongorestore
- MongoDB导出、备份、恢复
- MongoDB数据备份与还原
- MongoDB备份方法2
- 如何通过Web方式把服务器端的数据库备份到本地的电脑硬盘中?
- Mongodb采用$in方式提升操作效率
- mongodb的几种查询方式
- MongoDB迁移方案-冷备份+增量备份恢复