Some options are not relevant to the database connection. These additional options, peculiar to GridFS, are summarized here:
Option | Notes |
--local=<filename> | Use this option if you want the filename recorded in GridFS to be different from the local filename on the server's OS. In place of <filename>, enter the actual name of the file on the local server filesystem. At the end of the entire command string, enter the filename as you wish it to appear in GridFS. |
--replace | When you use the put command (described in the next subsection) to store a file, existing files of the same name are not overwritten. Instead, a new entry is created. If you want the currently stored file to be completely replaced, use this option. |
--prefix=<string> | Use this option to specify a different bucket. The default bucket is fs. Think of a bucket as being like a subdirectory. |
--db=<database> | This option specifies which database to use for GridFS... |