Skip to content

Commit 20efe57

Browse files
committed
update README.md
1 parent 8a1fc6e commit 20efe57

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,33 @@ 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] [--parallel=M] [--input=INPUT] [--output=OUTPUT]
11+
redis-port decode [--ncpu=N] [--parallel=M] \
12+
[--input=INPUT] \
13+
[--output=OUTPUT]
1214
```
1315

1416
* **RESTORE** rdb file to target redis
1517

1618
```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]
2022
```
2123

2224
* **DUMP** rdb file from master redis
2325

2426
```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]
2730
```
2831

2932
* **SYNC** data from master to slave
3033

3134
```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]]
3538
```
3639
3740
Options
@@ -72,9 +75,13 @@ Options
7275
7376
> dump or restore following redis backlog commands
7477
78+
+ --redis
79+
80+
> target is normal redis instance, default value is **false**.
81+
7582
+ --codis
7683
77-
> target is codis proxy or normal redis instance
84+
> target is codis proxy, default value is **true**.
7885
7986
+ --filterdb=DB
8087

0 commit comments

Comments
 (0)