Commit c61bedbc authored by j38560's avatar j38560

Run compare on remote host.

parent b20f319d
......@@ -4,8 +4,11 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $ROOT/set_env.sh
source $ROOT/functions.sh
mysqldbcompare --skip-data-check --server1=[email protected]$SOURCE_IP --server2=[email protected]$TARGET_IP performance:performance --changes-for=server2 -a --difftype=sql > $ROOT/../changes.sql
runRemoteSSH "$ROOT/../keys/deploykey.private" 'mysqldbcompare --skip-data-check [email protected]$SOURCE_IP [email protected]$TARGET_IP performance:performance --changes-for=server2 -a --difftype=sql > $ROOT/../changes.sql'
echo "Differences:
echo "##########################"
echo `cat $ROOT/../changes.sql`
\ No newline at end of file
runRemoteSSH "$ROOT/../keys/deploykey.private" "cat $ROOT/../changes.sql"
echo "##########################"
scp -o StrictHostKeyChecking=no -i $ROOT/../keys/deploykey.private [email protected]$TARGET_IP:/tmp/changes.sql .
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment