Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muayyad-alsadi/pyredis-dump
A Redis dump/restore tool for long-term storage
https://github.com/muayyad-alsadi/pyredis-dump
backup python python2 python3 redis redis-dump
Last synced: about 2 months ago
JSON representation
A Redis dump/restore tool for long-term storage
- Host: GitHub
- URL: https://github.com/muayyad-alsadi/pyredis-dump
- Owner: muayyad-alsadi
- License: gpl-2.0
- Created: 2016-12-30T17:26:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T11:19:10.000Z (5 months ago)
- Last Synced: 2024-10-18T00:56:08.685Z (about 2 months ago)
- Topics: backup, python, python2, python3, redis, redis-dump
- Language: Python
- Size: 8.79 KB
- Stars: 10
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-jordan - pyredis-dump - A Redis dump/restore tool for long-term storage (currently Python Literals using [AST](https://docs.python.org/2/library/ast.html)) (Python / Gists)
README
# pyredis-dump - A Redis Dump/Restore Tool
Inspired by [redis-dump-load](https://github.com/p/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](https://docs.python.org/2/library/ast.html))
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
```