Replication is a very advanced topic. Perhaps you should consult the docs...