Man Linux: Main Page and Category List

NAME

       mongofiles - a simple GridFS interface

SYNOPSIS

       mongofiles [OPTIONS]

DESCRIPTION

       mongofiles is used to list, get, and insert files in the database.

EXAMPLES

       mongofiles list
              lists files in test.fs.files

       mongofiles put README.txt
              inserts the file README.txt into the collection test.fs.files

       mongofiles get photo.jpg
              retrieves photo.jpg from test.fs.files and saves it locally

OPTIONS

       --help show usage information

       -h, --host HOST
              mongo host to which to connect

       -d, --db DB
              database to use (default DB=test)

       -c, --collection COLLECTION (default COLLECTION=fs.files)
              collection to use

       --command [list|search|put|get]
              execute a command

       --file FILE
              filename for get or put

       list   list  all  files.   takes an optional filename.  the file has to
              start with the filename

       search search all files for something that contains the string

COPYRIGHT

       Copyright 2007-2009 10gen

SEE ALSO

       For more information, please refer to the MongoDB  wiki,  available  at
       http://www.mongodb.org.

AUTHOR

       Kristina Chodorow