diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-06-09 16:13:01 +0200 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-06-09 16:13:01 +0200 |
commit | 72371097641202e6e11acc0fe61535fe7bbb2732 (patch) | |
tree | a371ecd8dcd58bbba28455392fbcaa6d17d0a2fa /lib/backup | |
parent | dedabbc0243cc7aa401c49f35b4e100ff2d95fa3 (diff) | |
download | gitlab-ci-72371097641202e6e11acc0fe61535fe7bbb2732.tar.gz |
use multipart uploading when using fog
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/manager.rb | 2 |
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 |