Skip to content

Instantly share code, notes, and snippets.

Youri Bonnaffé youribonnaffe

Block or report user

Report or block youribonnaffe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tralamazza
tralamazza / redis_save.sh
Last active Jun 21, 2016
call bgsave and sleep 5 loop until lastsave changes upload backup rdb to S3
View redis_save.sh
#!/bin/bash
rediscli=`which redis-cli`
s3cmd=`which s3cmd`
lsave=`$rediscli lastsave`
echo "LASTSAVE $lsave"
saved="`$rediscli config get dir | xargs | cut -d ' ' -f 2`/`$rediscli config get dbfilename | xargs | cut -d ' ' -f 2`"
$rediscli bgsave
while [ $lsave -eq `$rediscli lastsave` ]; do
You can’t perform that action at this time.