replaced append file with 'tee'.
Showing
... | ... | @@ -6,11 +6,6 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
source $ROOT/set_env.sh | ||
source $ROOT/functions.sh | ||
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 > /tmp/changes.sql" | ||
echo "Differences:" | ||
echo "##########################" | ||
runRemoteSSH "$ROOT/../keys/deploykey.private" "cat /tmp/changes.sql" | ||
echo "##########################" | ||
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" | ||
scp -o StrictHostKeyChecking=no -i $ROOT/../keys/deploykey.private [email protected]$TARGET_IP:/tmp/changes.sql $ROOT/../changes.sql | ||
\ No newline at end of file |
Please register or sign in to comment