Added restore-db.sh, which restores a MongoDB dump to the local database.
This commit is contained in:
parent
e2fbb41de1
commit
d261b7b64c
8
restore-db.sh
Executable file
8
restore-db.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 dump/{timestamp, like 2016-07-26-1150}" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mongorestore -h localhost:27017 -d eve --maintainInsertionOrder --stopOnError "$1/eve"
|
Loading…
x
Reference in New Issue
Block a user