Menu

Tree [cce7a8] master /
 History

HTTPS access


File Date Author Commit
 .github 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 client 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 cmd 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 config 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 img 2020-12-14 iamabhishek-dubey iamabhishek-dubey [ee98c4] Added architecture diagram
 migrator 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 .gitignore 2020-12-14 iamabhishek-dubey iamabhishek-dubey [af136b] Changed goreleaser
 Dockerfile 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 LICENSE 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 Makefile 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 README.md 2020-12-14 iamabhishek-dubey iamabhishek-dubey [cce7a8] Completed README
 VERSION 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 config.yaml 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 go.mod 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...
 go.sum 2020-12-14 iamabhishek-dubey iamabhishek-dubey [af136b] Changed goreleaser
 goreleaser.yml 2020-12-14 iamabhishek-dubey iamabhishek-dubey [af136b] Changed goreleaser
 main.go 2020-12-14 Abhishek Dubey Abhishek Dubey [9d43d1] [Development][Change] Converted python code to ...

Read Me

GitHub Super-Linter
made-with-Go
GitHub go.mod Go version
Go Report Card
Apache License
GitHub release (latest by date)

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:-

  • String keys
  • Hash keys

Quickstart

A quickstart guide for installing, using and managing redis-migrator.

Installation

redis-migrator installation packages can be found inside Releases

Supported Platforms:-

  • Binaries are supported for Linux and Windows platform with these architectures:-
  • Amd 64
  • Arm 64
  • Amd 32
  • Arm 32

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

Configuration

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: ""

Available Options

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.

Using redis-migrator

Simply we have to specify the path of config.yaml

$ redis-migrator migrate --config.file config.yaml

Roadmap

  • Add cluster support of redus for fast migration
  • Add golang concurrency to manage worker threads

Contact

If you have any suggestion or query. Contact us at

opensource@opstree.com