Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for S3 Infrequent Access storage class #725

Merged
merged 1 commit into from Dec 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/backup/storage/s3.rb
Expand Up @@ -58,6 +58,7 @@ class Error < Backup::Error; end
# Supported values:
#
# - :standard (default)
# - :standard_ia
# - :reduced_redundancy
#
# Default: :standard
Expand Down Expand Up @@ -143,10 +144,10 @@ def check_configuration
#encryption must be :aes256 or nil
EOS

classes = ['STANDARD', 'REDUCED_REDUNDANCY']
classes = ['STANDARD', 'STANDARD_IA', 'REDUCED_REDUNDANCY']
raise Error, <<-EOS unless classes.include?(storage_class.to_s.upcase)
Configuration Error
#storage_class must be :standard or :reduced_redundancy
#storage_class must be :standard or :standard_ia or :reduced_redundancy
EOS
end

Expand Down
2 changes: 1 addition & 1 deletion spec/storage/s3_spec.rb
Expand Up @@ -224,7 +224,7 @@ module Backup
s3.storage_class = :glacier
end
end.to raise_error {|err|
expect( err.message ).to match(/must be :standard or :reduced_redundancy/)
expect( err.message ).to match(/must be :standard or :standard_ia or :reduced_redundancy/)
}
end

Expand Down