summaryrefslogtreecommitdiff
path: root/debian/mongofiles.1
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2011-03-17 14:56:03 -0400
committerRichard Kreuter <richard@10gen.com>2011-03-17 14:57:23 -0400
commit72f549af6331ebee34ae70d97a7f8e52298470d3 (patch)
tree04bd38613e966bf40d876de89bc622b0f5015117 /debian/mongofiles.1
parentd3a9fe9ae236b7b3013533453c0b33fd94051bb6 (diff)
downloadmongo-72f549af6331ebee34ae70d97a7f8e52298470d3.tar.gz
Man page updates, pakager.py fixes, maybe SERVER-1968
* packager.py had a bug that left the man pages out of the .deb packages.
Diffstat (limited to 'debian/mongofiles.1')
-rw-r--r--debian/mongofiles.171
1 files changed, 55 insertions, 16 deletions
diff --git a/debian/mongofiles.1 b/debian/mongofiles.1
index 4d7c0c54aff..07630baa5b9 100644
--- a/debian/mongofiles.1
+++ b/debian/mongofiles.1
@@ -1,13 +1,32 @@
-.\" Documentation for the MongoDB dump tool
.TH MONGOFILES "1" "June 2009" "10gen" "Mongo Database"
.SH "NAME"
mongofiles \- a simple GridFS interface
.SH "SYNOPSIS"
-\fBmongofiles [\fIOPTIONS\fR]\fR
+\fBmongofiles [\fIOPTIONS\fR] \fICOMMAND\fR \fIFILENAME\fR\fR
.SH "DESCRIPTION"
.PP
\fBmongofiles\fR
is used to list, get, and insert files in the database.
+.TP
+Commands:
+.TP
+.B list
+list all files. FILENAME is an optional prefix which listed filenames
+must begin with.
+.TP
+.B search
+search all files. FILENAME is a substring which listed
+filenames must contain.
+.TP
+.B put
+add a file with filename FILENAME
+.TP
+.B get
+get a file with filename FILENAME
+.TP
+.B delete
+delete all files with filename FILENAME
+
.SH "EXAMPLES"
.TP
.B mongofiles list
@@ -23,29 +42,49 @@ retrieves photo.jpg from test.fs.files and saves it locally
.B \-\-help
show usage information
.TP
+.B \-v, \-\-verbose
+be more verbose (include multiple times for more verbosity
+e.g. \-vvvvv)
+.TP
.B \-h, \-\-host HOST
-mongo host to which to connect
+server to connect to (default HOST=localhost)
.TP
-.B \-d, \-\-db DB
-database to use (default DB=test)
+.B\-\-port arg
+server port. Can also use \-\-host hostname:port
.TP
-.B \-c, \-\-collection COLLECTION (default COLLECTION=fs.files)
-collection to use
+.B \-\-ipv6
+enable IPv6 support (disabled by default)
.TP
-.B \-\-command [list\||\|search\||\|put\||\|get]
-execute a command
+.B \-u|\-\-username USERNAME
+specify user to log in as
.TP
-.B \-\-file FILE
-filename for get or put
+.B \-p|\-\-password PASSWORD
+specify password of user
.TP
-.B list
-list all files. takes an optional filename. the file has to start with the filename
+.B \-\-dbpath PATH
+directly access mongod data files in this path, instead of connecting to a mongod instance
.TP
-.B search
-search all files for something that contains the string
+.B \-\-directoryperdb
+if dbpath specified, each db is in a separate directory
+.TP
+.B \-d, \-\-db DATABASE
+database to use
+.TP
+.B \-c, \-\-c COLLECTION
+collection to use (some commands, default COLLECTION=fs.files)
+.TP
+.B \-l, \-\-local FILENAME
+local filename for put|get (default is to use the same name as the
+FILENAME)
+.TP
+.B \-t, \-\-type arg
+MIME type for put (default is to omit)
+.TP
+.B \-r, \-\-replace
+Remove other files with the same name after PUT
.SH "COPYRIGHT"
.PP
-Copyright 2007\-2009 10gen
+Copyright 2007\-2011 10gen
.SH "SEE ALSO"
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
.SH "AUTHOR"