Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

asit-dhal/redis-dump-and-load

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

redis-dumpy help

(tut)redis-dump-and-load-$ python redis-dump.py -h
Usage: redis-dump.py [options]

Dump specific keys from a redis to a file.

Load data from a file to redis.

Options:
  -h, --help            show this help message and exit
  -m HOST, --host=HOST  connect to HOST(default is localhost)
  -p PORT, --port=PORT  connect to PORT(default is 6379)
  -w PASSWORD, --password=PASSWORD
                        connect with PASSWORD(default is None
  -d DB, --db=DB        dump DATABASE (0-N, default 0)
  -l LOAD, --load=LOAD  Load from dump file
  -s SAVE, --save=SAVE  Save to dump file
  -k KEY, --key=KEY     Search Key(default is *)

(tut)redis-dump-and-load-$ python redis-dump.py -s data.js -k asit*
475  keys dumped into the file

(tut)redis-dump-and-load-$ python redis-dump.py -l data.js
475  keys inserted into redis

About

dump redis in json and and reload into redis using python

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%