Skip to content

A Redis dump/restore tool for long-term storage

License

Notifications You must be signed in to change notification settings

tkote/pyredis-dump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

*** forked from muayyad-alsadi/pyredis-dump ***


pyredis-dump - A Redis Dump/Restore Tool

Inspired by redis-dump-load but can handle binary blobs not just text.

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

Features

  • Supports all Redis data types;
  • Dumps TTL and expiration times;
  • Can load TTL OR original expiration time for expiring keys;
  • Dumps are human readable
  • Dumps are line-aligned (can be streamed)
  • Can be used as a module in a larger program or as a standalone utility

Python 2/3 Compatability

Use python2 for restoring dumps taken using python2 Use python3 for restoring dumps taken using python3

Basic usage

python3 pyredis-dump.py -h
python3 pyredis-dump.py dblist
python3 pyredis-dump.py dump -o outfile.py3redis
python3 pyredis-dump.py restore -i outfile.py3redis

Additional features of this fork

  • -b/--bulk option is now effective for both dump/restore (originally for restore only)
  • -k/--watch option to enable watch(*keys) within dump pipeline (default: disabled, originally each key was watched for update)
  • -S/--ssl option to support TLS
  • When a key is deleted during processing, skip dumping that key and continue processing.

About

A Redis dump/restore tool for long-term storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%