Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
load atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
gharriso committed Apr 26, 2017
1 parent 7810051 commit f9813f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SampleCollections/load_atlas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export MONGOURL="mongodb://cluster0-shard-00-00-oexhg.mongodb.net:27017,cluster0-shard-00-01-oexhg.mongodb.net:27017,cluster0-shard-00-02-oexhg.mongodb.net:27017/admin?replicaSet=Cluster0-shard-0"
export MONGOHOST="--host Cluster0-shard-0/cluster0-shard-00-00-oexhg.mongodb.net:27017,cluster0-shard-00-01-oexhg.mongodb.net:27017,cluster0-shard-00-02-oexhg.mongodb.net:27017"
export OPTIONS='--ssl --username dbenvy --password DBEnvy@2016 --authenticationDatabase=admin'
echo mongorestore $MONGOURL $OPTIONS --drop
mongorestore $MONGOHOST $OPTIONS --drop

0 comments on commit f9813f2

Please sign in to comment.