summaryrefslogtreecommitdiff
path: root/debian/mongofiles.1
blob: 4d7c0c54aff26b13b09aa0d5d405b7588d277383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.\" 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
.SH "DESCRIPTION"
.PP
\fBmongofiles\fR
is used to list, get, and insert files in the database.
.SH "EXAMPLES"
.TP
.B mongofiles list
lists files in test.fs.files
.TP
.B mongofiles put README.txt
inserts the file README.txt into the collection test.fs.files
.TP
.B mongofiles get photo.jpg
retrieves photo.jpg from test.fs.files and saves it locally
.SH "OPTIONS"
.TP
.B \-\-help
show usage information
.TP
.B \-h, \-\-host HOST
mongo host to which to connect
.TP
.B \-d, \-\-db DB
database to use (default DB=test)
.TP
.B \-c, \-\-collection COLLECTION (default COLLECTION=fs.files)
collection to use
.TP
.B \-\-command [list\||\|search\||\|put\||\|get]
execute a command
.TP
.B \-\-file FILE
filename for get or put
.TP
.B list
list all files.  takes an optional filename.  the file has to start with the filename
.TP
.B search
search all files for something that contains the string
.SH "COPYRIGHT"
.PP
Copyright 2007\-2009 10gen
.SH "SEE ALSO"
For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.
.SH "AUTHOR"
Kristina Chodorow