Skip to content

amsa/mgfs

 
 

Repository files navigation

mgfs

Mount a MongoDb database as a filesystem via FUSE.

Installation

You need to have Golang installed. Open your terminal, and run go get github.com/amsa/mgfs. Now you should be able to run mgfs (be sure to add $GOPATH/bin to your $PATH).

How to use

First mount your MongoDb database: mgfs test /path/to/mount/dir. You may now go to the directory specified as the mount point, and see the collections (directories), and documents (json files). You may read, update, or delete the documents. You may also read and delete GridFs files under the specified prefix (fs by default).

Don't forget to unmount the database when you are done (umount /path/to/mount/dir).

Todo

  • Support GridFS read
  • Support GridFS remove
  • Support GridFS write
  • Show GridFS file names

Credits

About

Mount a MongoDb database as a filesystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%