templates/cli/utility/syncer/s3 in backup-3.0.23 vs templates/cli/utility/syncer/s3 in backup-3.0.24

- old
+ new

@@ -1,43 +1,41 @@ ## # Amazon S3 [Syncer] # # Available Regions: # - # - ap-northeast-1 - # - ap-southeast-1 - # - eu-west-1 - # - us-east-1 - # - us-west-1 + # - 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. + # 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): + # Concurrency: # - # - :threads (recommended) - # - :processes - # - false + # `concurrency_type` may be set to: # - # 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. + # - false (default) + # - :threads + # - :processes # - # Concurrency (concurrency_level): + # Set `concurrency_level` to the number of threads/processes to use. + # Defaults to 2. # - # 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| + 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 = :threads - s3.concurrency_level = 50 + 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