From 0e6faa231379e1213adfda669bbbb497248bc0ff Mon Sep 17 00:00:00 2001 From: Craig Rachel Date: Fri, 13 Apr 2018 07:36:25 -0500 Subject: [PATCH] s3: add One Zone Infrequent Access storage class - fixes #2240 --- backend/s3/s3.go | 5 ++++- docs/content/s3.md | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 17fee08c4..f26f63829 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -217,6 +217,9 @@ func init() { }, { Value: "STANDARD_IA", Help: "Standard Infrequent Access storage class", + }, { + Value: "ONEZONE_IA", + Help: "One Zone Infrequent Access storage class", }}, }}, }) @@ -237,7 +240,7 @@ const ( var ( // Flags s3ACL = flags.StringP("s3-acl", "", "", "Canned ACL used when creating buckets and/or storing objects in S3") - s3StorageClass = flags.StringP("s3-storage-class", "", "", "Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)") + s3StorageClass = flags.StringP("s3-storage-class", "", "", "Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA)") s3ChunkSize = fs.SizeSuffix(s3manager.MinUploadPartSize) ) diff --git a/docs/content/s3.md b/docs/content/s3.md index aae8d584f..33ec590e6 100644 --- a/docs/content/s3.md +++ b/docs/content/s3.md @@ -168,6 +168,8 @@ Choose a number from below, or type in your own value \ "REDUCED_REDUNDANCY" 4 / Standard Infrequent Access storage class \ "STANDARD_IA" + 5 / One Zone Infrequent Access storage class + \ "ONEZONE_IA" storage_class> 1 Remote config -------------------- @@ -350,6 +352,7 @@ Available options include: - STANDARD - default storage class - STANDARD_IA - for less frequently accessed data (e.g backups) + - ONEZONE_IA - for storing data in only one Availability Zone - REDUCED_REDUNDANCY (only for noncritical, reproducible data, has lower redundancy) #### --s3-chunk-size=SIZE ####