Skip to content

Instantly share code, notes, and snippets.

@nicc777
Forked from jozsefs/redis-dump-keys.sh
Created July 13, 2024 10:47
Show Gist options
  • Save nicc777/458097644e70c11fa100c8b1e3cb65a2 to your computer and use it in GitHub Desktop.
Save nicc777/458097644e70c11fa100c8b1e3cb65a2 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