presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/backup/HttpBackupStore.java/FileResponseHandler/writeFile
class FileResponseHandler:        private void writeFile(InputStream in)
                throws IOException
        {
            try (FileOutputStream out = new FileOutputStream(file)) {
                ByteStreams.copy(in, out);
                out.flush();
                out.getFD().sync();
            }
        }