wordpress.rake
# Print all backups in a particular bucket
Print all backups in a particular bucket
Print all backups in a particular bucket
def print_bucket(name)
    msg "Showing contents of #{bucket_name(name)}"
    bucket = AWS::S3::Bucket.find(bucket_name(name))
    bucket.objects.each do |object|
      size = format("%.2f", object.size.to_f/1048576)
      puts "Name: #{object.key} (#{size}MB)"
    end
  end
def print_bucket ( name ) msg "Showing contents of #{bucket_name(name)}" bucket = AWS :: S3 :: Bucket . find ( bucket_name ( name ) ) bucket . objects . each do | object | size = format ( "%.2f" , object . size . to_f / 1048576 ) puts "Name: #{object.key} (#{size}MB)" end end
Print all backups in a particular bucket
Print all backups in a particular bucket
name
<not_specific>