Run compare on remote host.
Showing
... | ... | @@ -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 |
Please register or sign in to comment