Skip to content

Instantly share code, notes, and snippets.

View bcmarinacci's full-sized avatar

Benji Marinacci bcmarinacci

View GitHub Profile
@bcmarinacci
bcmarinacci / dump-restore.sh
Created March 24, 2019 01:20
Pipe mongodump into mongorestore
mongodump \
--host "${ORIGIN_HOST}" \
--db "${ORIGIN_DB}" \
--username "${ORIGIN_USERNAME}" \
--password "${ORIGIN_PASSWORD}" \
--authenticationDatabase 'admin' \
--collection "${COLLECTION}" \
-vvv \
--gzip \
--archive |