Sha256: 005271355ec9a5d7c1e049fea84b3259d26c39c0153ae41f5ff02001efc3e8ad

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

  ##
  # Amazon S3 [Syncer]
  #
  # Available Regions:
  #
  #  - ap-northeast-1
  #  - ap-southeast-1
  #  - eu-west-1
  #  - us-east-1
  #  - us-west-1
  #
  # Mirroring:
  #
  #  When enabled it will keep an exact mirror of your filesystem on S3. This means
  #  that when you remove a file from the filesystem, it will also remote it from S3.
  #
  # Concurrency (concurrency_type):
  #
  #  - :threads (recommended)
  #  - :processes
  #  - false
  #
  #  Threads are a good choice for such sync operations and doesn't consume any additional memory.
  #  Using :processes is discouraged as it's likely to consumes a lot of memory.
  #
  # Concurrency (concurrency_level):
  #
  #  Defaults to 2, the higher the level, the faster it will sync.
  #  If you want a high concurrency level (>2), use :threads and not :processes.
  #
  sync_with S3 do |s3|
    s3.access_key_id     = "my_access_key_id"
    s3.secret_access_key = "my_secret_access_key"
    s3.bucket            = "my-bucket"
    s3.region            = "us-east-1"
    s3.path              = "/backups"
    s3.mirror            = true
    s3.concurrency_type  = :threads
    s3.concurrency_level = 50

    s3.directories do |directory|
      directory.add "/path/to/directory/to/sync"
      directory.add "/path/to/other/directory/to/sync"
    end
  end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
backup_checksum-3.0.23 templates/cli/utility/syncer/s3
backup-3.0.23 templates/cli/utility/syncer/s3
backup-3.0.22 templates/cli/utility/syncer/s3