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,9 +53,10 @@ class Backup
def upload_to_s3 def upload_to_s3
return unless s3 return unless s3
file = File.read(@path) File.open(@path) do |file|
s3.upload(file, @filename) s3.upload(file, @filename)
end end
end
def remove_from_s3 def remove_from_s3
return unless s3 return unless s3