Sha256: f5925c0f12b5c2628900ccc699dffd93707b8fbac96ef1c57b0e2419aa80eb83

Contents?: true

Size: 1.06 KB

Versions: 19

Compression:

Stored size: 1.06 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` may be set to:
  #
  #     - false (default)
  #     - :threads
  #     - :processes
  #
  #   Set `concurrency_level` to the number of threads/processes to use.
  #   Defaults to 2.
  #
  sync_with Cloud::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  = false
    s3.concurrency_level = 2

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

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
backup-3.6.0 templates/cli/syncer/s3
backup-3.5.1 templates/cli/syncer/s3
backup-3.5.0 templates/cli/syncer/s3
backup-3.4.0 templates/cli/syncer/s3
backup-3.3.2 templates/cli/syncer/s3
backup-3.3.1 templates/cli/syncer/s3
backup-3.3.0 templates/cli/syncer/s3
backup-3.2.0 templates/cli/syncer/s3
backup-3.1.3 templates/cli/syncer/s3
backup-3.1.2 templates/cli/syncer/s3
backup-3.1.1 templates/cli/syncer/s3
backup-3.1.0 templates/cli/syncer/s3
backup-agoddard-3.0.28 templates/cli/utility/syncer/s3
backup-agoddard-3.0.27 templates/cli/utility/syncer/s3
ey-vendored-backup-3.0.27 templates/cli/utility/syncer/s3
backup-3.0.27 templates/cli/utility/syncer/s3
backup-3.0.26 templates/cli/utility/syncer/s3
backup-3.0.25 templates/cli/utility/syncer/s3
backup-3.0.24 templates/cli/utility/syncer/s3