Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
dump redis in json and and reload into redis using python
branch: master

This branch is 10 commits ahead of scutshuxue:master

Failed to load latest commit information.
.gitignore Initial commit modified: default hostname and port

redis-dumpy help

(tut)redis-dump-and-load-$ python -h
Usage: [options]

Dump specific keys from a redis to a file.

Load data from a file to redis.

  -h, --help            show this help message and exit
  -m HOST, --host=HOST  connect to HOST(default is localhost)
  -p PORT, --port=PORT  connect to PORT(default is 6379)
  -w PASSWORD, --password=PASSWORD
                        connect with PASSWORD(default is None
  -d DB, --db=DB        dump DATABASE (0-N, default 0)
  -l LOAD, --load=LOAD  Load from dump file
  -s SAVE, --save=SAVE  Save to dump file
  -k KEY, --key=KEY     Search Key(default is *)

(tut)redis-dump-and-load-$ python -s data.js -k asit*
475  keys dumped into the file

(tut)redis-dump-and-load-$ python -l data.js
475  keys inserted into redis
Something went wrong with that request. Please try again.