Skip to content

KanbanSolutions/redis-dump-load

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-dump-load

Dumps Redis data sets into a format suitable for long-term storage (currently JSON) and loads data from such dump files back into Redis.

redis-dump was there first, but it is written in Ruby.

The output format is intended to be compatible with redis-dump.

Usage

redis-dump-load may be used as a module and also as a command-line tool.

To use it as a module, import it in your program and use the pickle-like interface: load, loads, dump, dumps. load and dump will stream the data.

To use it as a command-line tool, execute the script. If the basename of the script contains the word "load", the operating mode will be set to load data; otherwise the mode will be to dump data. -l may be used to change the mode to load regardless of what the script is called.

Example hardlink shortcuts:

ln redisdl.py redis-dump
ln redisdl.py redis-load

Symlinks work equally well.

Dependencies

License

Released under the 2 clause BSD license.

About

Dump redis databases, load data into redis - in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%