stickermule/rump

Authentication issue

xakraz opened this issue · 2 comments

Report

  • Dump remote Redis with rump and with AUTH to local rump file
$ ./rump -from redis://h:XXXXXXXXXXXX@ec2-XXXXXXXX.compute.amazonaws.com:PORT/0 -to ./hero-redis.rump -ttl

rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

SUCCESS
  • Connect to the destination ElastiCache using redis_uri format and redis-cli
echo $REDIS_URL 
redis://hXXXXXXX@127.0.0.1:6379

redis-cli -u ${REDIS_URL} INFO SERVER
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
# Server
redis_version:4.0.10
redis_git_sha1:0
redis_git_dirty:0
redis_build_id:0
redis_mode:standalone
os:Amazon ElastiCache
...
  • [!] Restore data to the the destination ElastiCache
./rump -from ./hero-redis.rump -to redis://hXXXXXXXXXX@127.0.0.1:6379/0

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
signal: exit
NOAUTH Authentication required.

Notes

I have seen #26 and I have downloaded rump 1.0.0 from GitHub Release, but still facing the issue

I have the same problem.

./rump-1.0.0-linux-amd64 -from redis://NODEA:6379/1 -to redis://:PASSWORD@NODEB:6379/1

signal: exit
done

I had to put an extra colon after the //:

redis://:

Then it worked...