https://github.com/afaur/mongo_index_cloner
https://github.com/afaur/mongo_index_cloner
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/afaur/mongo_index_cloner
- Owner: afaur
- Created: 2015-04-11T16:42:58.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-11T17:14:07.000Z (about 11 years ago)
- Last Synced: 2025-02-12T13:56:49.211Z (over 1 year ago)
- Language: Shell
- Size: 711 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Problem
Have two databases in mongo with collections but one has indexes and the other does not?
## Installing
- Clone this repo then run npm install to get dependencies.
```
npm install
```
## Running
- Once you have the dependencies use:
```
npm run copy
```
- Follow the instructions and this will make a file that stores the index information.
- Once you have completed that, run:
```
npm run apply
```
Follow the instructions, this is where you want these indexes to be applied.