Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SikhNerd/cf261accc5560800ef8bb48496a5b2de to your computer and use it in GitHub Desktop.
Save SikhNerd/cf261accc5560800ef8bb48496a5b2de to your computer and use it in GitHub Desktop.
Dump Redis rdb file from Google Cloud MemoryStore

Dumping a redis rdb file from a Google Cloud MemoryStore is easier than expected using redis-cli

Command

redis-cli -h <IP of MemoryStore Instance> --rdb dump.rdb

Restore rdb file from localhost to a Google Cloud MemoryStore instance

Command

rdb command is available by installing rdb-tools

rdb --command protocol ~/dump.rdb | redis-cli -h <IP of MemoryStore Instance> -p <Port of MemoryStore Instance> --pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment