redis-shake

迁移单机到单机 ./redis-shake sync.toml

迁移集群到集群 python3 cluster_helper.py ../redis-shake ../sync.toml

pip3 install redis
pip3 install toml
[source]

version = 3.2 # redis version, such as 2.8, 4.0, 5.0, 6.0, 6.2, 7.0, ...
address = "10.2.1.200:6381"
username = "" # keep empty if not using ACL
password = "aaaaaa" # keep empty if no authentication is required
tls = false
elasticache_psync = "" # using when source is ElastiCache. ref: https://github.com/alibaba/RedisShake/issues/373

  

[target]

type = "standalone" # "standalone" or "cluster"
version = 7.0 # redis version, such as 2.8, 4.0, 5.0, 6.0, 6.2, 7.0, ...
# When the target is a cluster, write the address of one of the nodes.
# redis-shake will obtain other nodes through the `cluster nodes` command.
address = "10.2.1.186:6379"
username = "" # keep empty if not using ACL
password = "" # keep empty if no authentication is required
tls = false
Published At