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.1.tar.gz
(2.6 kB
view details)
Built Distribution
rdl-1.1.1-py2-none-any.whl
(4.2 kB
view details)
File details
Details for the file rdl-1.1.1.tar.gz
.
File metadata
- Download URL: rdl-1.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69295db9e4d7bc8052acd7bd6a2a0f88cfea65b87ebd55f96e80ac0cf955f048 |
|
MD5 | 442b9f46dca3e53507ad1eac8c38ad62 |
|
BLAKE2b-256 | 3d9aa646cbf7264495e62854a3097c213433df6fb53a7f8945ebe0046966088f |
File details
Details for the file rdl-1.1.1-py2-none-any.whl
.
File metadata
- Download URL: rdl-1.1.1-py2-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acf6436a66381885b8904a22fa4e2d2d839c0175214d77e446342fa243a17af |
|
MD5 | 158c4823a26e4564602da855521c6238 |
|
BLAKE2b-256 | ddad4380f6ff752e49af49cfc2be68481eac694b732df94db4d2304a6d10e2ec |