Autoamtic build of github project yannh/redis-dump-go
274
Dump Redis keys to a file. Similar in spirit to https://www.npmjs.com/package/redis-dump and https://github.com/delano/redis-dump but:
Warning: like similar tools, Redis-dump-go does NOT provide Point-in-Time backups. Please use Redis backups methods when possible.
$ ./bin/redis-dump-go -h
Usage of ./bin/redis-dump-go:
-db uint
only dump this database (default: all databases)
-filter string
key filter to use (default "*")
-host string
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
Server port (default 6379)
-s Silent mode (disable logging of progress / stats)
-ttl
Preserve Keys TTL (default true)
$ ./bin/redis-dump-go > dump.resp
Database 0: 9 element dumped
Database 1: 1 element dumped
For password-protected Redis servers, set the shell variable REDISDUMPGO_AUTH:
$ export REDISDUMPGO_AUTH=myRedisPassword
$ redis-dump-go
Given a correctly configured Go environment:
$ go get github.com/yannh/redis-dump-go
$ cd ${GOPATH}/src/github.com/yannh/redis-dump-go
$ go test ./...
$ go install
redis-cli --pipe < redis-backup.txt
Content type
Image
Digest
Size
3.1 MB
Last updated
almost 6 years ago
docker pull lorello/redis-dump