@neoxr/mex
v1.0.2
Published
> Easy to use CLI program like Mongodb Tools to perform Mongo database backups and migrations.
Downloads
17
Maintainers
Readme
Mex
Easy to use CLI program like Mongodb Tools to perform Mongo database backups and migrations.
Usage : mex <command> [option]
Commands :
export Export all collections from database
import Import backup files to new database
Options :
--help, -h Display help about this program
--version, -v Print version
--uri Set mongodb uri
--db Set database name
--output Set backup folder
Export
$ mex export --uri="mongodb+srv://localhost" --db="bot"
Import
$ mex import --uri="mongodb+srv://localhost" --db="bot"