Redis dump & load tool.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rdl-1.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
rdl-1.1.0-py2-none-any.whl
(4.2 kB
view details)
File details
Details for the file rdl-1.1.0.tar.gz
.
File metadata
- Download URL: rdl-1.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934593783950518560df587c8ced1e85ce510ae68bfbf5da084c55ac6600ae18 |
|
MD5 | 8f0e2196b4a19e7472842838dcd6bc86 |
|
BLAKE2b-256 | bcbb19856a7d0800a1e952dbfe919c3b1bf135250d8bcf25b3665554c380306e |
File details
Details for the file rdl-1.1.0-py2-none-any.whl
.
File metadata
- Download URL: rdl-1.1.0-py2-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b907aa20904950a6f3402a7e6661a6e7c42261410d41511725cc820991d30b8 |
|
MD5 | 0833305f5b19e8418b55e5ba7c5370e3 |
|
BLAKE2b-256 | 3ea9f27f9c9b8a009baa01095fd59391e2d7babe8ac29a210d9b881da5b0e2ee |