public void store(Configuration conf) throws BackupException {
    byte[] data = backupImage.toProto().toByteArray();
    // write the file, overwrite if already exist
    Path manifestFilePath =
      new Path(HBackupFileSystem.getBackupPath(backupImage.getRootDir(), backupImage.getBackupId()),
        MANIFEST_FILE_NAME);
    try (FSDataOutputStream out =
      manifestFilePath.getFileSystem(conf).create(manifestFilePath, true)) {
      out.write(data);
    } catch (IOException e) {
      throw new BackupException(e.getMessage());
    }

    LOG.info("Manifest file stored to " + manifestFilePath);
  }
Persist the manifest file.
@throws BackupException if an error occurred while storing the manifest file.
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java