@@ -21,16 +21,15 @@ redis-port restore [--ncpu=N] [--parallel=M] [--input=INPUT] \
2121* ** DUMP** rdb file from master redis
2222
2323``` sh
24- redis-port dump [--ncpu= N] [--parallel= M] --from=MASTER \
25- [--password = PASSWORD] [-- output= OUTPUT] [--extra]
24+ redis-port dump [--ncpu= N] [--parallel= M] --from=MASTER [--password = PASSWORD] \
25+ [--output= OUTPUT] [--extra]
2626```
2727
2828* ** SYNC** data from master to slave
2929
3030``` sh
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]
31+ redis-port sync [--ncpu= N] [--parallel= M] --from=MASTER [--password= PASSWORD] \
32+ --target=TARGET [--codis] [--auth= AUTH] [--sockfile= FILE [--filesize= SIZE]] [--filterdb= DB] [--psync]
3433` ` `
3534
3635Options
@@ -86,14 +85,14 @@ Examples
8685
8786` ` ` sh
8887$ cat dump.rdb | ./redis-port decode 2> /dev/null
89- {" db" :0," type" :" string" ," expireat " :0, " key" :" a" ," key64 " :" YQ== " , " value64 " : " MTAwMDA= " }
90- {" db" :0 ," type" :" string" ," expireat " :0, " key" :" b " ," key64 " :" Yg== " , " value64 " : " aGVsbG8ud29ybGQ= " }
91- {" db" :0," type" :" hash" ," expireat " :0, " key" :" c" ," key64 " : " Yw== " , " field" :" c1 " ," field64 " :" YzE= " , " member64 " : " MTAw "
92- {" db" :0," type" :" hash " ," expireat " :0, " key" :" c" ," key64 " : " Yw== " , " field " : " c2 " , " field64 " : " YzI= " , " member64 " : " dGVzdC5zdHJpbmc= " }
93- {" db" :0," type" :" list" ," expireat " :0, " key" :" d " ," key64 " : " ZA== " , " index" :0," value64 " :" bDE= " }
94- {" db" :0," type" :" list" ," expireat " :0, " key" :" d " ," key64 " : " ZA== " , " index" :1," value64 " :" bDI= " }
95- {" db" :0," type" :" zset" ," expireat " :0, " key" :" e " ," key64 " : " ZQ== " , " member" :" e1 " ," member64 " : " ZTE= " , " score" :1.000000 }
96- {" db" :0," type" :" zset" ," expireat " :0, " key" :" e " ," key64 " : " ZQ== " , " member" :" e2 " ," member64 " : " ZTI= " , " score" :2.000000 }
88+ {" db" :0," type" :" string" ," key" :" a" ," value " :" hello " }
89+ {" db" :1 ," type" :" string" ," key" :" a " ," value " :" 9 " }
90+ {" db" :0," type" :" hash" ," key" :" c" ," field" :" hello " ," value " :" world " }
91+ {" db" :0," type" :" expire " ," key" :" c" ," expireat " :1487663341422 }
92+ {" db" :0," type" :" list" ," key" :" b " ," index" :0," value " :" hello " }
93+ {" db" :0," type" :" list" ," key" :" b " ," index" :1," value " :" world " }
94+ {" db" :0," type" :" zset" ," key" :" d " ," member" :" hello " ," score" :1}
95+ {" db" :0," type" :" zset" ," key" :" d " ," member" :" world " ," score" :1.8 }
9796 ... ...
9897` ` `
9998
0 commit comments