Follow this tutorial to set up Redis master-replica (formerly master-slave) replication. Learn how to configure replicas using replicaof command.