example RTG_URL: redis://username:[email protected]:9555/
$ redis-server
#in a new tab run:
$ redis-cli
redis 127.0.0.1:6379> DBSIZE
(integer) 0
redis 127.0.0.1:6379> CONFIG SET masterauth secretpasswordfromtheurl
OK
redis 127.0.0.1:6379> SLAVEOF lab.redistogo.com 9555
OK
redis 127.0.0.1:6379> DBSIZE
(integer) 2
redis 127.0.0.1:6379> info
role:slave
master_host:lab.redistogo.com
master_port:9555
master_link_status:up
master_last_io_seconds_ago:1
master_sync_in_progress:0
db0:keys=2,expires=0
redis 127.0.0.1:6379> SLAVEOF no one
OK