REPLICAOF host port
The REPLICAOF command can change the replication settings of a replica on the fly.
If a server is already a replica of some master, hostname port will stop the replication against the old server and start the synchronization against the new one, discarding the old dataset.