diff.sh 497 Bytes
Newer Older
j38560's avatar
j38560 committed
1 2
#!/bin/bash

j38560's avatar
j38560 committed
3 4
set -e

j38560's avatar
j38560 committed
5 6 7 8
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $ROOT/set_env.sh
source $ROOT/functions.sh

j38560's avatar
j38560 committed
9
runRemoteSSH "$ROOT/../keys/deploykey.private" "mysqldbcompare --skip-row-count --skip-data-check [email protected]$SOURCE_IP [email protected]$TARGET_IP performance:performance --changes-for=server2 --difftype=sql | tee /tmp/changes.sql"
j38560's avatar
j38560 committed
10

j38560's avatar
j38560 committed
11
scp -o StrictHostKeyChecking=no -i $ROOT/../keys/deploykey.private [email protected]$TARGET_IP:/tmp/changes.sql $ROOT/../changes.sql