Created
November 23, 2016 16:20
-
-
Save StanSvec/9db2006145a8eb871a98cdc1b60e12ff to your computer and use it in GitHub Desktop.
Copy Redis key to another Redis instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis-cli --raw dump mykey | head -c-1 > myfile | |
cat myfile | redis-cli -x restore mynewkey 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment