Skip to content

Commit d9a443b

Browse files
committedApr 29, 2021
Fix readme
1 parent 317613b commit d9a443b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎Readme.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ a Github Account might be required / bandwidth costs might be applicable.
3737
```
3838
$ ./bin/redis-dump-go -h
3939
Usage of ./bin/redis-dump-go:
40+
-batchSize int
41+
HSET/RPUSH/SADD/ZADD only add 'batchSize' items at a time (default 1000)
4042
-db uint
4143
only dump this database (default: all databases)
4244
-filter string
43-
key filter to use (default "*")
45+
Key filter to use (default "*")
4446
-host string
4547
Server host (default "127.0.0.1")
4648
-n int
@@ -54,6 +56,7 @@ Usage of ./bin/redis-dump-go:
5456
-s Silent mode (disable logging of progress / stats)
5557
-ttl
5658
Preserve Keys TTL (default true)
59+
5760
$ ./bin/redis-dump-go > dump.resp
5861
Database 0: 9 element dumped
5962
Database 1: 1 element dumped

‎main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func realMain() int {
5353
db := flag.Uint("db", 0, "only dump this database (default: all databases)")
5454
filter := flag.String("filter", "*", "Key filter to use")
5555
noscan := flag.Bool("noscan", false, "Use KEYS * instead of SCAN - for Redis <=2.8")
56-
batchSize := flag.Int("batchSize", 1000, "HSET/RPUSH/SADD/ZADD only add 'bathSize' items at a time")
56+
batchSize := flag.Int("batchSize", 1000, "HSET/RPUSH/SADD/ZADD only add 'batchSize' items at a time")
5757
nWorkers := flag.Int("n", 10, "Parallel workers")
5858
withTTL := flag.Bool("ttl", true, "Preserve Keys TTL")
5959
output := flag.String("output", "resp", "Output type - can be resp or commands")

0 commit comments

Comments
 (0)
Please sign in to comment.