flaviotvrs / mongodb-migration-tools

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 86.6%Language:Dockerfile 9.7%Language:JavaScript 3.7%