Skip to content

Commit 9bbfb22

Browse files
committed
refactor
1 parent 71a1187 commit 9bbfb22

File tree

7 files changed

+31
-449
lines changed

7 files changed

+31
-449
lines changed

.github/workflows/workflow.yml

-44
This file was deleted.

.sample.conf

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
old_redis:
2+
host: localhost # IP redis server
3+
port: 6379 # Port redis server
4+
password: "" # Password of redis server, leave empty if there is no password
5+
6+
new_redis:
7+
host: localhost
8+
port: 6380
9+
password: ""
10+
11+
migration_databases: [0,1,2,3,4,5,6,7,8] # Databases list which needs to be migrated
12+
concurrent_workers: 5
13+
clear_before_migration: true

Makefile

-14
This file was deleted.

README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
<p align="left">
2-
<img src="./img/logo.svg" height="180" width="180">
3-
</p>
4-
1+
## About
52
[![GitHub Super-Linter](https://github.com/opstree/redis-migration/workflows/CI%20Pipeline/badge.svg)](https://github.com/opstree/redis-migration)
63
[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)
74
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/opstree/redis-migration)
85
[![Go Report Card](https://goreportcard.com/badge/github.com/opstree/redis-migration)](https://goreportcard.com/report/github.com/opstree/redis-migration)
96
[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
107
![GitHub release (latest by date)](https://img.shields.io/github/v/release/opstree/redis-migration)
118

12-
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.
139

14-
Redis supported keys:-
10+
The Redis Migrator is a Golang-based tool designed to migrate database keys from one Redis cluster to another.
1511

16-
- String keys
17-
- Hash keys
12+
Since Redis `5.0.0`, you can use `REPLICAOF` command to replicate data from one redis to another.
1813

19-
![](img/architecture.png)
14+
This application is developed for the older version of Redis or AWS ElastiCache instances that do not support `REPLICAOF` command ([AWS docs](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/RestrictedCommands.html)).
2015

21-
## Quickstart
16+
### Supported key types:
17+
- String
18+
- Hash
19+
- List
20+
- Set
21+
- Sorted Set
2222

23-
A quickstart guide for installing, using and managing redis-migrator.
23+
## Usage
2424

2525
### Installation
2626

2727
redis-migrator installation packages can be found inside [Releases](https://github.com/opstree/redis-migration/releases)
2828

29-
Supported Platforms:-
29+
Supported Platforms
3030

31-
- Binaries are supported for Linux and Windows platform with these architectures:-
31+
- Binaries are supported for Linux and Windows platform with these architectures
3232
- Amd 64
3333
- Arm 64
3434
- Amd 32
3535
- Arm 32
3636

3737
For installation on debian and redhat based system, `.deb` and `.rpm` packages can be used.
3838

39-
For installing on MacOS system, use brew:-
39+
For installing on MacOS system, use brew
4040

4141
```shell
4242
brew install redis-migrator
4343
```
4444

4545
### Configuration
4646

47-
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:-
47+
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
4848

4949
```yaml
5050
---

go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ require (
1313

1414
require (
1515
github.com/inconshreveable/mousetrap v1.1.0 // indirect
16-
github.com/stretchr/testify v1.7.0 // indirect
1716
golang.org/x/sys v0.13.0 // indirect
1817
)

0 commit comments

Comments
 (0)