diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-31 13:29:37 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-31 13:29:37 -0400 |
commit | b826c9ff17b701344028832d523522a3cb925a23 (patch) | |
tree | 9365600d49092756d124da3d68721b73f8131777 /lib/backup | |
parent | e87149a12bef96b1870777d705a6eb4bc48708af (diff) | |
download | gitlab-ce-b826c9ff17b701344028832d523522a3cb925a23.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
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 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, |