@@ -8,30 +8,33 @@ parse redis rdb file, sync data between redis master and slave
8
8
* ** DECODE** dumped payload to human readable format (hex-encoding)
9
9
10
10
``` sh
11
- redis-port decode [--ncpu= N] [--parallel= M] [--input= INPUT] [--output= OUTPUT]
11
+ redis-port decode [--ncpu= N] [--parallel= M] \
12
+ [--input= INPUT] \
13
+ [--output= OUTPUT]
12
14
```
13
15
14
16
* ** RESTORE** rdb file to target redis
15
17
16
18
``` sh
17
- redis-port restore [--ncpu= N] [--parallel= M] [--input = INPUT ] \
18
- --target=TARGET [--codis] [--auth = AUTH] [--faketime = FAKETIME ] \
19
- [--filterdb = DB ] [--extra ]
19
+ redis-port restore [--ncpu= N] [--parallel= M] \
20
+ [--input = INPUT] [--faketime = FAKETIME] [--extra] [--filterdb = DB ] \
21
+ --target=TARGET [--auth = AUTH ] [--redis | --codis ]
20
22
```
21
23
22
24
* ** DUMP** rdb file from master redis
23
25
24
26
``` sh
25
- redis-port dump [--ncpu= N] [--parallel= M] --from=MASTER [--password= PASSWORD] \
26
- [--output= OUTPUT] [--extra]
27
+ redis-port dump [--ncpu= N] [--parallel= M] \
28
+ --from=MASTER [--password= PASSWORD] [--extra] \
29
+ [--output= OUTPUT]
27
30
```
28
31
29
32
* ** SYNC** data from master to slave
30
33
31
34
``` sh
32
- redis-port sync [--ncpu= N] [--parallel= M] --from=MASTER [--password = PASSWORD ] \
33
- --target=TARGET [--codis] [--auth = AUTH] [--sockfile = FILE [--filesize = SIZE] ] \
34
- [--filterdb = DB ] [--psync ]
35
+ redis-port sync [--ncpu= N] [--parallel= M] \
36
+ --from=MASTER [--password = PASSWORD] [--psync] [--filterdb = DB ] \
37
+ --target=TARGET [--auth = AUTH ] [--redis | --codis] [--sockfile = FILE [--filesize = SIZE] ]
35
38
` ` `
36
39
37
40
Options
@@ -72,9 +75,13 @@ Options
72
75
73
76
> dump or restore following redis backlog commands
74
77
78
+ + --redis
79
+
80
+ > target is normal redis instance, default value is ** false** .
81
+
75
82
+ --codis
76
83
77
- > target is codis proxy or normal redis instance
84
+ > target is codis proxy, default value is ** true ** .
78
85
79
86
+ --filterdb=DB
80
87
0 commit comments