summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-31 13:29:37 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-05-31 13:29:37 -0400
commitb826c9ff17b701344028832d523522a3cb925a23 (patch)
tree9365600d49092756d124da3d68721b73f8131777
parente87149a12bef96b1870777d705a6eb4bc48708af (diff)
downloadgitlab-ce-rs-create-remote-backup-folder.tar.gz
Create the specified remote directory during backuprs-create-remote-backup-folder
This is idempotent, so there's no harm calling it if the directory already exists. Closes #12710
-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 3e07096e6cc..660ca8c2923 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -48,7 +48,7 @@ module Backup
end
connection = ::Fog::Storage.new(connection_settings)
- directory = connection.directories.get(remote_directory)
+ directory = connection.directories.create(key: remote_directory)
if directory.files.create(key: tar_file, body: File.open(tar_file), public: false,
multipart_chunk_size: Gitlab.config.backup.upload.multipart_chunk_size,