Skip to content

Commit 0dfbff3

Browse files
committed
add task examples
1 parent ceb977a commit 0dfbff3

10 files changed

+78
-2
lines changed

.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
syncserver: http://114.67.127.196:8080
1+
syncserver: http://11.7.27.16:8080
22
token: 379F5E2BD55A4608B6A7557F0583CFC5
33

44

examples/cluster2cluster.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"sourcePassword": "testredis0102",
3+
"sourceRedisAddress": "11.67.67.7:36379;11.67.83.163:36379;11.67.112.67:36379",
4+
"targetRedisAddress": "11.67.67.7:16379;11.67.67.7:16380;11.67.83.163:16379;11.67.83.163:16380;11.67.112.67:16379;11.67.112.67:16380",
5+
"targetPassword": "testredis0102",
6+
"taskName": "cluster2cluster",
7+
"targetRedisVersion": 4.0,
8+
"autostart": true,
9+
"afresh": true,
10+
"batchSize": 100
11+
}

examples/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syncserver: http://114.67.67.7:8081
2+
token: BE1B37677BCC4EB9BBB08FCCE23E7E4C
3+

examples/importaof2single.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"fileAddress": "/data",
3+
"targetRedisAddress": "10.0.1.102:6379",
4+
"targetPassword": "redistest0102",
5+
"taskName": "importaofcase",
6+
"autostart": true,
7+
"fileType": "AOF",
8+
"batchSize": 500,
9+
"targetRedisVersion": 4.0
10+
}

examples/importrdb2single.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"fileAddress": "/data/dump.rdb",
3+
"targetRedisAddress": "10.0.1.102:6379",
4+
"targetPassword": "redistest0102",
5+
"taskName": "importrdbcase",
6+
"autostart": true,
7+
"fileType": "RDB",
8+
"batchSize": 500,
9+
"targetRedisVersion": 5.0
10+
}

examples/listtasks.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"regulation": "all"
3+
}

examples/single2cluster.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"sourcePassword": "redistest0102",
3+
"sourceRedisAddress": "10.0.1.45:6379",
4+
"targetRedisAddress": "11.67.67.7:16379;11.67.67.7:16380;11.67.83.163:16379;11.67.83.163:16380;11.67.112.67:16379;11.67.112.67:16380",
5+
"targetPassword": "testredis0102",
6+
"taskName": "single2cluster",
7+
"targetRedisVersion": 4.0,
8+
"autostart": true,
9+
"afresh": true,
10+
"batchSize": 100
11+
}

examples/single2single.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"sourcePassword": "redistest0102",
3+
"sourceRedisAddress": "10.0.1.101:6379",
4+
"targetRedisAddress": "10.0.1.102:6379",
5+
"targetPassword": "redistest0102",
6+
"taskName": "single2single",
7+
"targetRedisVersion": 4.0,
8+
"autostart": true,
9+
"afresh": true,
10+
"batchSize": 100
11+
}

examples/single2singlewithdbmap.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"sourcePassword": "redistest0102",
3+
"sourceRedisAddress": "10.0.1.101:6379",
4+
"targetRedisAddress": "10.0.1.102:6379",
5+
"targetPassword": "redistest0102",
6+
"dbMapper": {
7+
"0": 3,
8+
"2": 6,
9+
"3": 5,
10+
"8": 10
11+
},
12+
"taskName": "single2singlewithdbmap",
13+
"targetRedisVersion": 4.0,
14+
"autostart": true,
15+
"afresh": true,
16+
"batchSize": 1000
17+
}

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BINARY="redissyncer-cli"
22
LINUX="linux-amd64"
33
DARWIN="darwin-adm64"
44
WIN="windows-amd64"
5-
VERSION=1.0.0
5+
VERSION=0.1.0
66
BUILD=`date +%FT%T%z`
77

88
PACKAGES=`go list ./... | grep -v /vendor/`

0 commit comments

Comments
 (0)