antirez/redis — Issue #288: redis-cli ability to convert an RDB file into JSON or CSV and vice-versa
Author: antirez
Created: 2012-01-07 21:32:01+00:00
State: open
Labels: documentation, feature request, more design needed

A way to turn a Redis RDB database into something easily easy to parse and share outside the Redis world is interesting for many reasons. For instance this would easily allow to mass-import Redis data into MySQL to run queries not possible with Redis, or to launch other off-line processing of data easily.

Additional features that could be interesting:
* Ability to do export only keys matching a matter, a type, or a DB num
* Export data in a way that is valid JSON but also parseable with an ad-hoc parser with less state and more performances compared to a real JSON parser. That's easy to do since Redis does not use nested data structures so generating a single entry/element per line is easy.

More ideas are welcome.

As a sub-task of this issue, we should write documentation for the RDB binary format, that is now only described by the source code itself.