Added restore-db.sh, which restores a MongoDB dump to the local database.

This commit is contained in:
Sybren A. Stüvel 2016-07-26 12:13:44 +02:00
parent e2fbb41de1
commit d261b7b64c

8
restore-db.sh Executable file
View 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"