Skip to content

Instantly share code, notes, and snippets.

@raypereda
Last active December 18, 2015 11:39
Show Gist options
  • Save raypereda/5777568 to your computer and use it in GitHub Desktop.
Save raypereda/5777568 to your computer and use it in GitHub Desktop.
#!/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