Skip to main content

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.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

rdl-1.2.0-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file rdl-1.2.0.tar.gz.

File metadata

  • Download URL: rdl-1.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rdl-1.2.0.tar.gz
Algorithm Hash digest
SHA256 edbef9bf54b707b8d371723b71fa0e07534efea7083f75242ff4e4f6d91ef94c
MD5 d8320bfb5bf4126407b0b3a0740fe7c7
BLAKE2b-256 0681d8c9af7778b68a18a10db00d24c410e99d02669e8575eb1010dd27ca09d8

See more details on using hashes here.

File details

Details for the file rdl-1.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for rdl-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 115f07eaeaa4fb3c6f5eab9ce38ce452c21ee816dd5fb6865feef8c7c1954335
MD5 0862a26e9a2a2929ca4d8a940dd81ba9
BLAKE2b-256 3102b86417dda80145c2d517380712b9f858939dc4b935b1bbc37ea7b64dcb42

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page