Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
/ asdf-mongo-tools Public archive

mongo-tools (assorted MongoDB utilities) plugin for the asdf version manager.

License

Notifications You must be signed in to change notification settings

itspngu/asdf-mongo-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asdf-mongo-tools CI Lint

mongo-tools plugin for the asdf version manager.

ARCHIVAL NOTICE

I stopped using asdf-vm and archived this repository. If you're using this plugin, please consider forking the repository and having it added to the upstream plugin list at https://github.com/asdf-vm/asdf-plugins.

Contents

Plugin Dependencies

  • git - for downloads of upstream releases
  • go 1.15 - to build the tools

On Linux (Debian/Ubuntu) you also need some extra development headers:

  • libsasl2-dev - Plugin is built with SASL authentication available
  • libpcap-dev- Needed by mongoreplay

On Fedora/RHEL the libraries are called cyrus-sasl-devel and libpcap-devel, respectively.

Install

Plugin:

$ asdf plugin-add mongo-tools https://github.com/itspngu/asdf-mongo-tools.git

mongo-tools:

# Show all installable versions
$ asdf list-all mongo-tools

# Install specific version
$ asdf install mongo-tools latest

# Set a version globally (in your ~/.tool-versions file)
$ asdf global mongo-tools latest

Check asdf readme for more instructions on how to install & manage versions.

mongo-tools

  • bsondump - display BSON files in a human-readable format
  • mongoimport - Convert data from JSON, TSV or CSV and insert them into a collection
  • mongoexport - Write an existing collection to CSV or JSON format
  • mongodump/mongorestore - Dump MongoDB backups to disk in .BSON format, or restore them to a live database
  • mongostat - Monitor live MongoDB servers, replica sets, or sharded clusters
  • mongofiles - Read, write, delete, or update files in GridFS
  • mongotop - Monitor read/write activity on a mongo server

Refer to the upstream mongo-tools repository for documentation and usage instructions of the included tools.

License

See LICENSE