Linux - read a redis rdb file

10 Jun 25

found a random dump.rdb file in /environment which i wanted to peek at before deleting.
turn out its a  Redis database snapshot.
  1. downloaded the rdb-linux-amd64 executable linked from go-rdb-tool on github.
  2. copied it from windows to ~/Downloads on wsl
  3. ran the executable on the .rdb
  4. it was empty!

 cp /mnt/c/Users/arthu/Downloads/rdb-linux-amd64 .
./rdb-linux-amd64 -c json -o  ~/environment/dump.json ~/environment/dump.rdb