Skip to content

This tool allows you to copy a Mongo database from one cluster to another.

License

Notifications You must be signed in to change notification settings

flaviotvrs/mongodb-migration-tools

Repository files navigation

MongoDB Migration Tools

This tool allows you to copy a Mongo database from one cluster to another.

Quick reference

Built on top of

How to use this image

The entire database

python main.py \  
    --origin  mongodb+srv://<username>:<password>@<host>:<port>/<database> \
    --destination mongodb+srv://<username>:<password>@<host>:<port>/<database>

A single collection

python main.py \  
    --origin  mongodb+srv://<username>:<password>@<host>:<port>/<database> \
    --destination mongodb+srv://<username>:<password>@<host>:<port>/<database> \
    --collection <collection> \
    --override-database

For help

python main.py -h