Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 966 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 966 Bytes

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