Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 18:56:37 +0300
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 18:56:37 +0300
commitbf7315cb13eab0cd1427efe29ce110a963b63c34 (patch)
treeca4a531e408815d107587d66a32d6d87c96ece54 /lib/backup
parent6267a6b9995744fc5ccab7a89c27a27e61b9cb7b (diff)
update fog to 1.25.0 and add multipart upload support
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb3
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