FIX: stream backups upload to S3

This commit is contained in:
Régis Hanol 2014-09-25 18:28:51 +02:00
parent 57f7b92bb4
commit b16e6f8289

View File

@ -53,8 +53,9 @@ class Backup
def upload_to_s3
return unless s3
file = File.read(@path)
s3.upload(file, @filename)
File.open(@path) do |file|
s3.upload(file, @filename)
end
end
def remove_from_s3