nicoknoll / mongodb-backup-json-bash

A bash script for exporting/importing collections as .json files from/to mongoDB,

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backup.sh

A bash script for exporting/importing collections as .json files from/to mongoDB.

Usage

Usage: ./backup.sh [opts] <export|import>

OPTIONS:
    -h      Show this help.

    -p      Set Path
    -c      Set Collection

    -U      Mongo Username
    -P      Mongo Password
    -D      Mongo Database
    -H      Mongo Host String (ex. localhost:27017)

    -a      As JSON Array
    -b      Pretty Print
 

About

A bash script for exporting/importing collections as .json files from/to mongoDB,


Languages

Language:Shell 100.0%