Open GoogleCodeExporter opened 9 years ago
If you do not want to provide a password on the command line for
security reasons, you just have to launch redis-cli with no -a
option, and then use the AUTH command to provide the password.
It is even more secure than having to define an environment
variable ...
Original comment by didier...@gmail.com
on 8 Mar 2011 at 4:04
I've considered this, but don't see how this could solve my problem: I'd like
my backup-preexec script to issue a "redis-cli save" (on a password protected
Redis) before the nightly backup run.
Original comment by sven.sch...@gmail.com
on 8 Mar 2011 at 4:23
You could do something like this:
redis-cli <<EOF
auth $YOUR_PASSWORD
save
EOF
That said, I think using save to backup a production
Redis instance is a mistake, because Redis will be
frozen during the save operation. You would be better
served by a combination of bgsave and lastsave IMO.
Regards,
Didier.
Original comment by didier...@gmail.com
on 8 Mar 2011 at 4:40
Thanks for the hint, that'll work - and make this bug obsolete.
bgsave would be great if the OK were delayed until the fork finished dumping.
Monitoring lastsave is both cumbersome and troublesome (if the bgsave failed
for some reason).
Original comment by sven.sch...@gmail.com
on 8 Mar 2011 at 5:08
Thanks a lot ,i have got the solution to my need from your answer.
Original comment by jkryanc...@gmail.com
on 31 Aug 2014 at 8:01
Original issue reported on code.google.com by
sven.sch...@gmail.com
on 8 Mar 2011 at 3:16