This docker image features a minimal setup of a Redis key management tool collection.
Issue the following command to run:
$ docker run -v "/dir/to/mount:/data" -w /data --rm shinkou/redisutils COMMAND
where COMMAND can be one of the followings...
To see the help page:
redis2csv -h
Or, to dump from Redis to CSV:
redis2csv -H some.redis.server -o /path/to/output/csv/file 'regexp_key_pattern_.*'
To see the help page:
csv2redis -h
To restore from CSV:
csv2redis -H some.redis.server /path/to/input/csv/file
To see the help page:
redisdel -h
To remove keys with RegExp patterns:
redisdel -H some.redis.server REGEXP1 [ REGEXP2 [ REGEXP3 ... ] ]
To remove keys provided in CSVs:
redisdel -H some.redis.server --csv CSV1 [ CSV2 [ CSV3 ... ] ]
Content type
Image
Digest
sha256:ec0ce4204…
Size
25.6 MB
Last updated
over 2 years ago
docker pull shinkou/redisutils