Preparing an infrastructure for replication