presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/backup/HttpBackupStore.java/HttpBackupStore/backupShard
class HttpBackupStore:    @Override
    public void backupShard(UUID uuid, File source)
    {
        Request request = preparePut()
                .addHeader(PRESTO_ENVIRONMENT, environment)
                .addHeader(CONTENT_TYPE, APPLICATION_BINARY.toString())
                .addHeader(CONTENT_XXH64, format("%016x", xxHash64(source)))
                .setUri(shardUri(uuid))
                .setBodyGenerator(new FileBodyGenerator(source))
                .build();

        try {
            StatusResponse status = httpClient.execute(request, createStatusResponseHandler());
            if (!isOk(status)) {
                throw badResponse(status);
            }
        }
        catch (RuntimeException e) {
            throw new PrestoException(RAPTOR_BACKUP_ERROR, "Failed to backup shard: " + uuid, e);
        }
    }