skip to navigation
skip to content

rdl 1.0.1

Redis dump & load tool.

This tool is made specially for dump & load certain database of a redis server, if you want to dump whole redis or replicate from one to another, please checkout redis bgsave or redis replication on google.

NOTE: Package redis is required to use this tool.

Usage

usage: rdl.py [-n N] [-h H] [-p P] [-f] [--help] ACTION FILE

Redis dump-load tool.

positional arguments:
  ACTION  `dump` or `load`.
  FILE    if action is dump, then its output file, if actions is load, then
          its source file.

optional arguments:
  -n N    Number of database to process.
  -h H    Redis host
  -p P    Redis port
  -f      Force or flush database before load
  --help  show this help message and exit

Example

Dump database 1 to file redis.dump:

$ ./rdl.py dump redis.dump -n 1

Load to database 3 from file redis.dump:

$ ./rdl.py load redis.dump -n 3 -f
 
File Type Py Version Uploaded on Size
rdl-1.0.1-py2.7.egg (md5) Python Egg 2.7 2015-12-23 4KB
rdl-1.0.1.linux-x86_64.tar.gz (md5)
built for Linux-3.13.0-74-generic-x86_64-with-glibc2.4
"dumb" binary any 2015-12-29 3KB
rdl-1.0.1.macosx-10.11-x86_64.tar.gz (md5)
built for Darwin-15.2.0
"dumb" binary any 2015-12-23 3KB
rdl-1.0.1.tar.gz (md5) Source 2014-06-05 2KB
rdl-1.0.1.whatever.tar.gz (md5)
built for Darwin-15.2.0
"dumb" binary any 2015-12-29 3KB
rdl-1.0.1.win-amd64.tar.gz (md5)
built for Darwin-15.2.0
"dumb" binary any 2015-12-29 3KB