Rapidly copies all keys from one Redis instance to another. Uses SCAN to read keys and pipelines DUMP/RESTORE to move values.
$ go get gopkg.in/redis.v5
Edit the file to set the Redis connection info, and maybe tune the number of records per chunk (currently 7500) and number of goroutines (10), then:
$ go run redis_copy.go
$ mkdir -p ~/go/src
$ export GOPATH=~/go
$ go get gopkg.in/redis.v5
$ cd ~/go/src
$ git clone $THISREPO