Last active
March 19, 2020 18:47
-
-
Save ugurozgen/db2aa143f935781b364d6853d0b05b57 to your computer and use it in GitHub Desktop.
redis to redis easy migration ==> ./rtor.sh from.redis.com to.redis.com
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
| #!/bin/bash | |
| FROM=$1 | |
| TO=$2 | |
| npm i redis-dump -g | |
| redis-dump -h $FROM > dump.txt | |
| cat dump.txt | redis-cli -h $TO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment