Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 559 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 559 Bytes

Redis Dumper

This script dumps all the entries from one Redis DB into a file in the redis protocol format. See here and here. This allows use to pipe the resulting file directly into redis with pipe command like this.

# dump redis database
$ redis-dumper -h 127.0.0.1 -p 6379 -n 0

# restore redis database from file
$ cat redis_db_0_dump.rdb | redis-cli --pipe

This script is especially created to get contents from AWS Elasticache but works with all Redis instances.