Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #273 from alphagov/fix-replicate-db
Browse files Browse the repository at this point in the history
DevVM now lives in pp-puppet
  • Loading branch information
robyoung committed Apr 30, 2014
2 parents 7442c6b + b95b48f commit 288db2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/replicate-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ ssh $SOURCE_HOST "rm -Rf ${FILENAME} ${DUMPDIR}"
tar xzvf $FILENAME

if [ -z "$2" ]; then
pushd ../../pp-development/
vagrant ssh -c "cd /var/apps/backdrop/tools && mongorestore --drop ${DUMPDIR}"
pushd ../../pp-puppet/
vagrant ssh development-1 -c "cd /var/apps/backdrop/tools && mongorestore --drop ${DUMPDIR}"
popd
else
mongorestore --drop -h $DESTINATION_HOST $DUMPDIR
Expand Down

0 comments on commit 288db2d

Please sign in to comment.