Redis migrator is a golang based tool to migrate the database keys from one redis cluster to another. This tool can be used to migrate different types of redis keys from one redis setup to another.
Redis supported keys:-

A quickstart guide for installing, using and managing redis-migrator.
redis-migrator installation packages can be found inside Releases
Supported Platforms:-
For installation on debian and redhat based system, .deb and .rpm packages can be used.
For installing on MacOS system, use brew:-
brew install redis-migrator
For using redis-migrator, we have to create a configuration file and provide some needful information to it. An example configuration file will look like this:-
---
old_redis:
host: 172.17.0.3 # IP redis server
port: "6379" # Port redis server
password: "" # Password of redis server, leave empty if there is no password
migration_databases: [0] # Databases list which needs to be migrated
concurrent_workers: 4
new_redis:
host: 172.17.0.4
port: "6379"
password: ""
There are help page available for redis-migrator which can be called by help or --help command.
$ redis-migrator help
A tool for migrating redis database and its keys.
Usage:
redis-migrator [flags]
redis-migrator [command]
Available Commands:
help Help about any command
migrate Runs redis-migrator to run migration
version Prints the current version.
Flags:
-h, --help help for redis-migrator
--log.format string redis-migrator log format. (default "text")
--log.level string redis-migrator logging level. (default "info")
Use "redis-migrator [command] --help" for more information about a command.
Simply we have to specify the path of config.yaml
$ redis-migrator migrate --config.file config.yaml
If you have any suggestion or query. Contact us at
opensource@opstree.com