diff --git a/bin/diff.sh b/bin/diff.sh index ef0543c9cafb1b159a21b9d7c44c5b49ccac8fbe..dd8790610e994ddea5623383674feed607a0b10e 100644 --- a/bin/diff.sh +++ b/bin/diff.sh @@ -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=deployment@$SOURCE_IP --server2=deployment@$TARGET_IP performance:performance --changes-for=server2 -a --difftype=sql > $ROOT/../changes.sql +runRemoteSSH "$ROOT/../keys/deploykey.private" 'mysqldbcompare --skip-data-check --server1=deployment@$SOURCE_IP --server2=deployment@$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 root@$TARGET_IP:/tmp/changes.sql . \ No newline at end of file