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

Commit

Permalink
Update replicate script to move to correct dump folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Cowling committed Nov 28, 2013
1 parent 8063d62 commit 2078654
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/replicate-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@
#

if [ "$(hostname)" == "vm" ]; then
echo "This script should be run on the host machine!"
exit 1
echo "This script should be run on the host machine!"
exit 1
fi

if [ "$(basename $(pwd))" != 'tools' ]; then
echo "This script should be run from the backdrop/tools directory!"
exit
fi


if [ $# -lt 1 ]; then
echo "The script requires at least one argument."
echo
echo "Replicate backdrop data from a source host to a target host."
echo
echo "Usage:"
echo " $(basename $0) <user@source_host> [<target_host>]"
echo
echo
echo "Example:"
echo " $(basename $0) youruser@mongo dev.machine"
echo " This will run mongorestore on the host machine against the specified target host"
Expand Down

0 comments on commit 2078654

Please sign in to comment.