REPLICAOF host port

    The command can change the replication settings of a replica on the fly.

    If a server is already a replica of some master, REPLICAOF hostname port will stop the replication against the old server and start the synchronization against the new one, discarding the old dataset.