Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yannh committed Oct 14, 2020
1 parent b7b7096 commit 69c1d0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Usage of ./bin/redis-dump-go:
Server host (default "127.0.0.1")
-n int
Parallel workers (default 10)
-noscan
Use KEYS * instead of SCAN - for Redis <=2.8
-output string
Output type - can be resp or commands (default "resp")
-port int
Expand All @@ -43,7 +45,7 @@ Database 0: 9 element dumped
Database 1: 1 element dumped
```

For password-protected Redis servers, set the shell variable REDISDUMPGO_AUTH:
For password-protected Redis servers, set the shell variable REDISDUMPGO\_AUTH:

```
$ export REDISDUMPGO_AUTH=myRedisPassword
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func realMain() int {
host := flag.String("host", "127.0.0.1", "Server host")
port := flag.Int("port", 6379, "Server port")
db := flag.Uint("db", 0, "only dump this database (default: all databases)")
filter := flag.String("filter", "*", "key filter to use")
noscan := flag.Bool("noscan", false, "use KEYS * instead of SCAN - for Redis <=2.8")
filter := flag.String("filter", "*", "Key filter to use")
noscan := flag.Bool("noscan", false, "Use KEYS * instead of SCAN - for Redis <=2.8")
nWorkers := flag.Int("n", 10, "Parallel workers")
withTTL := flag.Bool("ttl", true, "Preserve Keys TTL")
output := flag.String("output", "resp", "Output type - can be resp or commands")
Expand Down

0 comments on commit 69c1d0c

Please sign in to comment.