File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,12 @@ a Github Account might be required / bandwidth costs might be applicable.
37
37
```
38
38
$ ./bin/redis-dump-go -h
39
39
Usage of ./bin/redis-dump-go:
40
+ -batchSize int
41
+ HSET/RPUSH/SADD/ZADD only add 'batchSize' items at a time (default 1000)
40
42
-db uint
41
43
only dump this database (default: all databases)
42
44
-filter string
43
- key filter to use (default "*")
45
+ Key filter to use (default "*")
44
46
-host string
45
47
Server host (default "127.0.0.1")
46
48
-n int
@@ -54,6 +56,7 @@ Usage of ./bin/redis-dump-go:
54
56
-s Silent mode (disable logging of progress / stats)
55
57
-ttl
56
58
Preserve Keys TTL (default true)
59
+
57
60
$ ./bin/redis-dump-go > dump.resp
58
61
Database 0: 9 element dumped
59
62
Database 1: 1 element dumped
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func realMain() int {
53
53
db := flag .Uint ("db" , 0 , "only dump this database (default: all databases)" )
54
54
filter := flag .String ("filter" , "*" , "Key filter to use" )
55
55
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" )
57
57
nWorkers := flag .Int ("n" , 10 , "Parallel workers" )
58
58
withTTL := flag .Bool ("ttl" , true , "Preserve Keys TTL" )
59
59
output := flag .String ("output" , "resp" , "Output type - can be resp or commands" )
You can’t perform that action at this time.
0 commit comments