SLAVEOF host port

    A note about the word slave used in this man page and command name: Starting with Redis 5 this command: starting with Redis version 5, if not for backward compatibility, the Redis project no longer uses the word slave. Please use the new command . The command SLAVEOF will continue to work for backward compatibility.

    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.

    Simple string reply