backup - Dump and restore data of a specific key in redis -
I want to back up a special key in my radis which has multiple keys in my radis, and I have my keys I do not want to take a full backup of the data I am going through, I found there is a command dump through which I can do the dump of a specific key as follows:
redis> Dump "MyKey"
But in the headset only the output is given in the console only, is it possible to store data for a particular key in a file and later it will Is it possible to import into key?
If you are trying to dump / reinstall a key from the command line (which What is necessary to do this when mixing this question), please see some non-obvious quirks near Radis for a more detailed explanation.
The short answer is as follows: /> | HeadC-1 & gt; Myfile bwood @ mybox: ~ $ cat myfile | Restore redis-cli -x mynewkey 0
Comments
Post a Comment