summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 16:13:01 +0200
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 16:13:01 +0200
commit72371097641202e6e11acc0fe61535fe7bbb2732 (patch)
treea371ecd8dcd58bbba28455392fbcaa6d17d0a2fa /lib/backup
parentdedabbc0243cc7aa401c49f35b4e100ff2d95fa3 (diff)
downloadgitlab-ci-72371097641202e6e11acc0fe61535fe7bbb2732.tar.gz
use multipart uploading when using fog
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index dc5ac75..d657bba 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -45,7 +45,7 @@ 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: 104857600)
$progress.puts "done".green
else
puts "uploading backup to #{remote_directory} failed".red