1MONGOFILES(1) Mongo Database MONGOFILES(1)
2
3
4
6 mongofiles - a simple GridFS interface
7
9 mongofiles [OPTIONS]
10
12 mongofiles is used to list, get, and insert files in the database.
13
15 mongofiles list
16 lists files in test.fs.files
17
18 mongofiles put README.txt
19 inserts the file README.txt into the collection test.fs.files
20
21 mongofiles get photo.jpg
22 retrieves photo.jpg from test.fs.files and saves it locally
23
25 --help show usage information
26
27 -h, --host HOST
28 mongo host to which to connect
29
30 -d, --db DB
31 database to use (default DB=test)
32
33 -c, --collection COLLECTION (default COLLECTION=fs.files)
34 collection to use
35
36 --command [list|search|put|get]
37 execute a command
38
39 --file FILE
40 filename for get or put
41
42 list list all files. takes an optional filename. the file has to
43 start with the filename
44
45 search search all files for something that contains the string
46
48 Copyright 2007-2009 10gen
49
51 For more information, please refer to the MongoDB wiki, available at
52 http://www.mongodb.org.
53
55 Kristina Chodorow
56
57
58
5910gen June 2009 MONGOFILES(1)