]>
Commit | Line | Data |
---|---|---|
bf4da466 IB |
1 | #!/bin/bash |
2 | ||
3 | if [ -z "$1" ]; then | |
4 | echo "$(basename $0) zip-file-to-restore.zip" | |
5 | exit 1 | |
6 | fi | |
7 | ||
8 | file=$(pwd)/$1 | |
9 | ||
10 | cd $HOME/workdir/app | |
11 | ||
12 | unzip "$file" | |
13 | ||
14 | source ../environment | |
15 | mongorestore --drop --uri $FRETLINK_MONGO_URI $(pwd)/.dump/ | |
16 | ||
17 | if [ -e "../fixtures" ]; then | |
18 | source ../fixtures | |
19 | fi |