restore-db.sh: drop existing collections before restoring.
This commit is contained in:
parent
2d72c96a45
commit
862fcbf147
@ -5,4 +5,8 @@ if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mongorestore -h localhost:27017 -d eve --maintainInsertionOrder --stopOnError "$1/eve"
|
||||
echo "THIS WILL DROP EXISTING CONNECTIONS"
|
||||
echo "Press [ENTER] to continue, [CTRL]+[C] to abort."
|
||||
read dummy
|
||||
|
||||
mongorestore -h localhost:27017 -d eve --drop --maintainInsertionOrder --stopOnError "$1/eve"
|
||||
|
Loading…
x
Reference in New Issue
Block a user