sync_replica.sh #2