Skip to main content

A simple command line tool for redis data migration

Project description

Redis Migrate

Simple command line tool for redis data migration (minimal functionality)

It is useful when you're not able to use slaveof command (e.g. slaveof command is not available in ElastiCache) or should migrate from multiple redis servers to a single server.

Installation

pip install redis-migrate

Usage

# Basic usage
redis-migrate srchost[:port][/db] dsthost[:port][/db] [--all-keys=false] [--procs=1]

# Migrate the keys from db 0 of source host to db 1 of destination host.
redis-migrate srchost dsthost/1

# If you don't want to replace existing keys, use `--no-replace` option.
redis-migrate srchost dsthost/1 --no-replace

# Migrate the entire keys from source host at 6380 port to destination host.
# It will ignore `/db` number.
redis-migrate srchost:6380 dsthost --all-keys

# You can also set process number to use multiprocessing for speed up.
# It works only with `--all-keys`.
redis-migrate srchost dsthost --all-keys --procs 4

License

MIT

Stashed changes

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for redis-migrate, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size redis_migrate-1.0.0-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size redis-migrate-1.0.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page