Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reorx/rdl
Redis dump & load tool.
https://github.com/reorx/rdl
backup cli dump redis
Last synced: 3 months ago
JSON representation
Redis dump & load tool.
- Host: GitHub
- URL: https://github.com/reorx/rdl
- Owner: reorx
- License: mit
- Created: 2014-03-24T08:52:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T12:46:51.000Z (over 6 years ago)
- Last Synced: 2024-11-01T10:35:08.698Z (3 months ago)
- Topics: backup, cli, dump, redis
- Language: Python
- Size: 17.6 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
rdl - Redis dump-load tool
==========================.. image:: https://travis-ci.org/reorx/rdl.svg?branch=master
:target: https://travis-ci.org/reorx/rdlThis 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.
Installation
------------::
pip install rdl
Usage
-----::
usage: rdl [-n N] [-h HOST] [-p PORT] [-a AUTH] [-f] [--ignore-none-value]
[--help] [--version]
ACTION FILERedis 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 HOST, --host HOST Redis host
-p PORT, --port PORT Redis port
-a AUTH, --auth AUTH Redis password
-f, --flushdb Force or flush database before load
--ignore-none-value Ignore None when dumping db, by default it will raise
ValueError if DUMP result is None
--help show this help message and exit
--version show program's version number and exitExample
-------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