diff options
author | Jon Keys <jon.keys@gmail.com> | 2017-02-28 16:30:58 -0500 |
---|---|---|
committer | Jon Keys <jon.keys@gmail.com> | 2017-02-28 16:30:58 -0500 |
commit | 7a7ec1ac0f742753d7acfacb7b7913ebbaf81558 (patch) | |
tree | 952643b24757862b41b0c2e194140ef4efc6a144 /lib/backup | |
parent | 261f5a68edc37eca25b9f49f2d3d75261bd794a7 (diff) | |
download | gitlab-ce-7a7ec1ac0f742753d7acfacb7b7913ebbaf81558.tar.gz |
Add storage class configuration option for Amazon S3 remote backups
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/manager.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 5cc164a6325..7b4476fa4db 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -51,7 +51,8 @@ module Backup if directory.files.create(key: tar_file, body: File.open(tar_file), public: false, multipart_chunk_size: Gitlab.config.backup.upload.multipart_chunk_size, - encryption: Gitlab.config.backup.upload.encryption) + encryption: Gitlab.config.backup.upload.encryption, + storage_class: Gitlab.config.backup.upload.storage_class) $progress.puts "done".color(:green) else puts "uploading backup to #{remote_directory} failed".color(:red) |