Namespace

Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::S3

Attributes

access_key_id[RW]

Amazon Simple Storage Service (S3) Credentials

bucket[RW]

Amazon S3 bucket name

chunk_size[RW]

Multipart chunk size, specified in MiB.

Each package file larger than chunk_size will be uploaded using S3 Multipart Upload.

Minimum: 5 (but may be disabled with 0) Maximum: 5120 Default: 5

encryption[RW]

Encryption algorithm to use for Amazon Server-Side Encryption

Supported values:

  • :aes256

Default: nil

fog_options[RW]

Additional options to pass along to fog. e.g. Fog::Storage.new({ :provider => ‘AWS’ }.merge(fog_options))

max_retries[RW]

Number of times to retry failed operations.

Default: 10

region[RW]

Region of the specified S3 bucket

retry_waitsec[RW]

Time in seconds to pause before each retry.

Default: 30

secret_access_key[RW]

Amazon Simple Storage Service (S3) Credentials

storage_class[RW]

Storage class to use for the S3 objects uploaded

Supported values:

  • :standard (default)

  • :reduced_redundancy

Default: :standard

use_iam_profile[RW]

Amazon Simple Storage Service (S3) Credentials

Public Class Methods

new(model, storage_id = nil) click to toggle source
# File lib/backup/storage/s3.rb, line 69
def initialize(model, storage_id = nil)
  super

  @chunk_size     ||= 5 # MiB
  @max_retries    ||= 10
  @retry_waitsec  ||= 30
  @path           ||= 'backups'
  @storage_class  ||= :standard
  path.sub!(/^\//, '')

  check_configuration
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.