Giter Club home page Giter Club logo

mongo-clone's Introduction

๐Ÿ’พ mongo-clone

CLI tool for cloning mongoDB database from one server to another.
It is useful for DB backups from DB hostings that doesn't support free backup plan. (e.g. mlab)

๐Ÿ”ง Installation

From npm (the recommended way):
npm i mongo-clone -g

or

From git repo:

  1. clone repo: git clone https://github.com/fr1sk/mongo-clone.git
  2. cd to repo: cd mongo-clone
  3. install mongo-clone: npm i -g

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Usage

Start cloning:
mongo-clone -s <SOURCE_MONGO_DB_URL> -t <TARGET_MONGO_DB_URL> [-f]
-s source mongoDB server that you want to clone from
-t target mongoDB server (empty DB) that you want to clone to
-f (optional) force deletion of target mongoDB before copying

Mongo URL example:
mongodb://USER:PASS@HOST:PORT/DBNAME

๐Ÿ”Ž Other info - Good to know

  • It won't clone all of system.indexes! ๐Ÿ—‚๏ธ
  • Keep in mind that this is beta version and if you have some problems please report it! My email is [email protected] ๐Ÿ“ง
  • Feel free to contribute - just open PR! ๐Ÿ‘‹๐Ÿป
  • If you like it buy me a beer ๐Ÿบ
    My BTC addresse: 1KUxHZT6H9aSHQrNZvb1qw6ZvRJ6VEApWu

๐Ÿ‘จ๐Ÿปโ€๐Ÿ”ง๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ”ง Collaborators

Raschid J.F. Rafeally

๐Ÿ“บ Demo

mongo-clone demo1
mongo-clone: without arguments!

mongo-clone demo2
mongo-clone: cloning in progress!

mongo-clone demo3
mongo-clone: cloning completed!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.