redis-rdb-tools
redis-rdb-tools copied to clipboard
Don't convert anything if regex doesn't match
I have a redis DB with some hash like user:abc
.
Doing a dump like this:
rdb --command json --key "user-nothing:.*" -f user.json dump.rdb
same with:
rdb --command json --type hash --key "user-nothing:.*" -f user.json dump.rdb
ends up filling up the json file, with all data even though nothing should've matched.
What am I missing?