mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
63 lines
1.4 KiB
Groff
63 lines
1.4 KiB
Groff
.TH MONGODUMP "1" "June 2009" "10gen" "Mongo Database"
|
|
.SH "NAME"
|
|
mongodump \- the Mongo dump tool
|
|
.SH "SYNOPSIS"
|
|
\fBmongodump [\fIOPTIONS\fR]\fR
|
|
.SH "DESCRIPTION"
|
|
.PP
|
|
\fBmongodump\fR
|
|
is a tool to output a binary representation of a database. It is mostly used for doing hot backups of a database.
|
|
.SH "OPTIONS"
|
|
.TP
|
|
.B \-\-help
|
|
show usage information
|
|
.TP
|
|
.B \-\-version
|
|
show version information
|
|
.TP
|
|
.B \-h, \-\-host HOST
|
|
server to connect to (default HOST=localhost)
|
|
.TP
|
|
.B\-\-port arg
|
|
server port. Can also use \-\-host hostname:port
|
|
.TP
|
|
.B \-\-ipv6
|
|
enable IPv6 support (disabled by default)
|
|
.TP
|
|
.B \-u|\-\-username USERNAME
|
|
specify user to log in as
|
|
.TP
|
|
.B \-p|\-\-password PASSWORD
|
|
specify password of user (notice there is no space)
|
|
.TP
|
|
.B \-d, \-\-db DATABASE
|
|
database to use
|
|
.TP
|
|
.B \-c, \-\-c COLLECTION
|
|
collection to use
|
|
.TP
|
|
.B \-o, \-\-out DIRECTORY
|
|
output directory or - for stdout.
|
|
.TP
|
|
.B \-\-dbpath PATH
|
|
directly access mongod data files in this path, instead of connecting to a mongod instance
|
|
.TP
|
|
.B \-\-directoryperdb
|
|
if dbpath specified, each db is in a separate directory
|
|
.TP
|
|
.B \-\-query
|
|
JSON query filter
|
|
.TP
|
|
.B \-\-oplog
|
|
Use oplog for point-in-time snapshotting
|
|
.TP
|
|
.B \-\-repair
|
|
try to recover a crashed database (needs \-\-dbpath)
|
|
.SH "COPYRIGHT"
|
|
.PP
|
|
Copyright 2007\-2011 10gen
|
|
.SH "SEE ALSO"
|
|
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
|
|
.SH "AUTHOR"
|
|
Kristina Chodorow
|