mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: stream backups upload to S3
This commit is contained in:
parent
57f7b92bb4
commit
b16e6f8289
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue