Replacing the server during replication