mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: stream backups upload to S3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user