lib/backup/database/redis.rb in backup-3.9.0 vs lib/backup/database/redis.rb in backup-3.10.0

- old
+ new

@@ -70,9 +70,18 @@ Could not invoke the Redis SAVE command. Command was: #{ redis_save_cmd } Response was: #{ resp } EOS end + + rescue Error + if resp =~ /save already in progress/ + unless (attempts ||= '0').next! == '5' + sleep 5 + retry + end + end + raise end def copy! src_path = File.join(path, name + '.rdb') unless File.exist?(src_path)