This file contains 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 | |
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 |