Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/florianporada/mongorestore

Wrapper around mongorestore cli for restoring a complete mongo dump, db by db (sync)
https://github.com/florianporada/mongorestore

Last synced: 1 day ago
JSON representation

Wrapper around mongorestore cli for restoring a complete mongo dump, db by db (sync)

Awesome Lists containing this project

README

        

# ♻️ Mongorestore script

This script restores a complete (unzipped) mongodb db by db (sync).

## Usage

### Basic

```bash
node index.js
```

### Advanced

You are also able to define some `env` variables. The following are supported

```env
MONGODB_PASSWORD
MONGODB_USER
MONGODB_HOST
MONGODB_PORT
MONGODB_DRYRUN
```

## Example

```bash
node index.js /Users/macuser/Desktop/dump
```