Last active
December 18, 2015 11:39
-
-
Save raypereda/5777568 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# nuke-dbs -- completely restore nbuild databases | |
cd $NBUILD | |
# Note: This script assumes that your checkout of nbuild is | |
# in ~/Workspace/nbuild. | |
# Exit if errors are encountered | |
set -e | |
# Assume that if one script is present, all of them are. | |
if [ ! -f "fetch-db-dumps" ]; then | |
echo "Please run this script from the root directory of an ops checkout." | |
exit 1 | |
fi | |
./fetch-db-dumps -a | |
./init-dev-db -c | |
./init-dev-db -r | |
./restore-dbs -a | |
./init-dev-db -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment