CLI Utility for restore local mongo db from repo with backups
Clone repo on local filesystem:
git clone https://github.com/tormozz48/backup-detective.git
Install npm dependencies:
npm install
CLI utility for restore local mongo database from repository with backups
Restore local mongo database
Usage:
bd restore [OPTIONS] [ARGS]
Options:
-h, --help : Help
-db DATABASE, --database=DATABASE : name of local database (required)
-d DATE, --date=DATE : date of backup in YYYY-MM-DD format (example: 2018-08-10)
-env ENVIRONMENT, --environment=ENVIRONMENT : backup environment identifier
-backups BACKUPS, --backups=BACKUPS : repository with backups
Example:
node bin/bd restore --database=platform-api-test --backups=../mongobackups/ -d 2018-08-01