@@ -8,25 +8,29 @@ parse redis rdb file, sync data between redis master and slave
88* ** DECODE** dumped payload to human readable format (hex-encoding)
99
1010``` sh
11- redis-port decode [--ncpu= N] [--input= INPUT] [--output= OUTPUT]
11+ redis-port decode [--ncpu= N] [--parallel = M] [-- input= INPUT] [--output= OUTPUT]
1212```
1313
1414* ** RESTORE** rdb file to target redis
1515
1616``` sh
17- redis-port restore [--ncpu= N] [--input= INPUT] --target=TARGET [--auth= AUTH] [--extra] [--faketime= FAKETIME] [--filterdb= DB]
17+ redis-port restore [--ncpu= N] [--parallel= M] [--input= INPUT] \
18+ --target=TARGET [--codis] [--auth= AUTH] [--faketime= FAKETIME] [--filterdb= DB] [--extra]
1819```
1920
2021* ** DUMP** rdb file from master redis
2122
2223``` sh
23- redis-port dump [--ncpu= N] --from=MASTER [--password= PASSWORD] [--output= OUTPUT] [--extra]
24+ redis-port dump [--ncpu= N] [--parallel= M] --from=MASTER \
25+ [--password= PASSWORD] [--output= OUTPUT] [--extra]
2426```
2527
2628* ** SYNC** data from master to slave
2729
2830``` sh
29- redis-port sync [--ncpu= N] --from=MASTER [--password= PASSWORD] --target=TARGET [--auth= AUTH] [--sockfile= FILE [--filesize= SIZE]] [--filterdb= DB] [--psync]
31+ redis-port sync [--ncpu= N] [--parallel= M] --from=MASTER \
32+ [--password= PASSWORD] --target=TARGET [--codis] [--auth= AUTH] \
33+ [--sockfile= FILE [--filesize= SIZE]] [--filterdb= DB] [--psync]
3034` ` `
3135
3236Options
@@ -35,6 +39,10 @@ Options
3539
3640> set runtime.GOMAXPROCS to _N_
3741
42+ + -p _M_, --parallel=_M_
43+
44+ > set number of parallel routines
45+
3846+ -i _INPUT_, --input=_INPUT_
3947
4048> use _INPUT_ as input file, or if it is not given, redis-port reads from stdin (means ' /dev/stdin' )
@@ -63,6 +71,10 @@ Options
6371
6472> dump or restore following redis backlog commands
6573
74+ + --codis
75+
76+ > target is codis proxy or normal redis instance
77+
6678+ --filterdb=DB
6779
6880> filter specifed db number, default value is ' *'
0 commit comments