s3_db_assets_backup 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ namespace :db do
|
|
60
60
|
file_name = backups.at(selected).key
|
61
61
|
backup_file = File.join(base_path, "tmp", file_name)
|
62
62
|
puts "downloading backup..."
|
63
|
-
open(backup_file, '
|
63
|
+
open(backup_file, 'wb') do |file|
|
64
64
|
AWS::S3::S3Object.stream(file_name, bucket_name) do |chunk|
|
65
65
|
file.write chunk
|
66
66
|
end
|