mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 02:35:04 +08:00
FIX: stream backups upload to S3
This commit is contained in:
parent
57f7b92bb4
commit
b16e6f8289
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user