def upload(bucket, key, path)
      Mongolicious.logger.info("Uploading archive to #{key}")

      @con.put_object(
        bucket, key, File.open(path, 'r'),
        {'x-amz-acl' => 'private', 'Content-Type' => 'application/x-tar'}
      )
    end
def upload(bucket, key, path)
      Mongolicious.logger.info("Uploading archive to #{key}")

      @con.put_object(
        bucket, key, File.open(path, 'r'),
        {'x-amz-acl' => 'private', 'Content-Type' => 'application/x-tar'}
      )
    end
Upload the given path to S3.

 @param [String] bucket the bucket where to store the archive in.
 @param [String] key the key where the archive is stored under.
 @param [String] path the path, where the archive is located.

 @return [Hash]