diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-06-09 18:56:37 +0300 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-06-09 18:56:37 +0300 |
commit | bf7315cb13eab0cd1427efe29ce110a963b63c34 (patch) | |
tree | ca4a531e408815d107587d66a32d6d87c96ece54 /lib | |
parent | 6267a6b9995744fc5ccab7a89c27a27e61b9cb7b (diff) |
update fog to 1.25.0 and add multipart upload support
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backup/manager.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index b69aebf9fe1..b1596cc51b7 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -46,7 +46,8 @@ module Backup connection = ::Fog::Storage.new(connection_settings) directory = connection.directories.get(remote_directory) - if directory.files.create(key: tar_file, body: File.open(tar_file), public: false) + if directory.files.create(key: tar_file, body: File.open(tar_file), public: false, + multipart_chunk_size: GitlabCi.config.backup.upload.multipart_chunk_size) $progress.puts "done".green else puts "uploading backup to #{remote_directory} failed".red |