Skip to content

Simple script to migrate Redis database to Redis (or Elasticache) in cluster mode

Notifications You must be signed in to change notification settings

u2mejc/redis-to-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redis-to-cluster

A simple script to migrate Redis database key data to Redis (or Elasticache) in cluster mode.

Supports:

  • Reids
  • Redis Cluster Mode
  • SSL (aka rediss://)
  • AUTH passwords

Redis URLs

You must format your URL appropriately, per http://www.iana.org/assignments/uri-schemes/prov/redis

format = <schema>://(:password)@<host>:<port>/(db) (exclude db number for cluster mode)

How to use

git clone [email protected]:u2mejc/redis-to-cluster.git
virtualenv redis-to-cluster
source redis-to-cluster/bin/activate
pip install -r requirments.txt
python redis-to-cluster.py -h
python redis-to-cluster.py -s redis://<redis_hostname>:6379/0 -d rediss://(:password)@<redis_cluster>:6379/

Credit

Based on Github Gist josegonzalez/redis_migrate.py, which is a fork of iserko/redis_migrate.py.

About

Simple script to migrate Redis database to Redis (or Elasticache) in cluster mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages