Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (62 sloc) 1.402 kb
.TH MONGORESTORE "1" "June 2009" "10gen" "Mongo Database"
mongorestore \- the Mongo restoration tool
\fBmongorestore [\fIOPTIONS\fR]\fR
is a tool to use the output from mongodump to restore a database.
.B \-\-help
show usage information
.B \-\-version
show version information
.B \-h, \-\-host HOST
server to connect to (default HOST=localhost)
.B\-\-port arg
server port. Can also use \-\-host hostname:port
.B \-\-ipv6
enable IPv6 support (disabled by default)
.B \-u|\-\-username USERNAME
specify user to log in as
.B \-p|\-\-password PASSWORD
specify password of user (notice there is no space)
.B \-d, \-\-db DATABASE
database to use
.B \-c, \-\-c COLLECTION
collection to use
.B \-\-dbpath PATH
directly access mongod data files in this path, instead of connecting to a mongod instance
.B \-\-directoryperdb
if dbpath specified, each db is in a separate directory
.B \-\-objcheck
validate object before inserting
.B \-\-filter arg
filter to apply before inserting
.B \-\-drop
drop each collection before import
.B \-\-oplogReplay
replay oplog for point-in-time restore
Copyright 2007\-2011 10gen
For more information, please refer to the MongoDB wiki, available at
Kristina Chodorow
Jump to Line
Something went wrong with that request. Please try again.