def parse_backup_list(lines)
      result = Array.new
      lines.each do |l|
        match = l.match(/^(.+)\s(\d+T\d+)/)
        b = Backup.new
        b.server = match[1]
        b.id = match[2]

        status_match = l.match(/.+(FAILED|STARTED)/)
        status_match.nil? ? b.status = :done : b.status = status_match[1].downcase.to_sym

        if b.status == :done
          sizematch = l.match(/.+Size:\s(\S+)\s(\S+)\s-.+Size:\s(\S+)\s(\S+)/)
          b.size = CliCommand.size_in_bytes(sizematch[1].to_f, sizematch[2])
          b.wal_file_size = CliCommand.size_in_bytes(sizematch[3].to_f, sizematch[4])
        end
        result << b
      end
      return result
    end
def parse_backup_list(lines)
      result = Array.new
      lines.each do |l|
        match = l.match(/^(.+)\s(\d+T\d+)/)
        b = Backup.new
        b.server = match[1]
        b.id = match[2]

        status_match = l.match(/.+(FAILED|STARTED)/)
        status_match.nil? ? b.status = :done : b.status = status_match[1].downcase.to_sym

        if b.status == :done
          sizematch = l.match(/.+Size:\s(\S+)\s(\S+)\s-.+Size:\s(\S+)\s(\S+)/)
          b.size = CliCommand.size_in_bytes(sizematch[1].to_f, sizematch[2])
          b.wal_file_size = CliCommand.size_in_bytes(sizematch[3].to_f, sizematch[4])
        end
        result << b
      end
      return result
    end
Creates an array of {Backup} by parsing lines reported by barman
 @param [Array<String>] lines an array of lines like 'test 20130218T080002 - Mon Feb 18 18:11:16 2013 - Size: 213.0 GiB - WAL Size: 130.0 GiB'
 @return [Array<Backup>] an array of {Backup}