Skip to content

Instantly share code, notes, and snippets.

@thiagoalmeidasa
Forked from jozsefs/redis-dump-keys.sh
Created October 2, 2018 20:47
Show Gist options
  • Select an option

  • Save thiagoalmeidasa/f2a2123ba5a637711defc408731f3bdc to your computer and use it in GitHub Desktop.

Select an option

Save thiagoalmeidasa/f2a2123ba5a637711defc408731f3bdc to your computer and use it in GitHub Desktop.
dump redis keys with value (human readable values, not using the DUMP from redis). TBH if you have 10k+ keys this will take a lot of time
redis-cli keys \* | while read key; do value="`redis-cli get "$key"`"; echo "$key: $value"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment