protected void updateBackupManifest(String backupRoot, String mergedBackupId,
    List<String> backupsToDelete) throws IllegalArgumentException, IOException {
    BackupManifest manifest =
      HBackupFileSystem.getManifest(conf, new Path(backupRoot), mergedBackupId);
    LOG.info("Removing ancestors from merged backup {} : {}", mergedBackupId, backupsToDelete);
    manifest.getBackupImage().removeAncestors(backupsToDelete);
    // save back
    LOG.info("Creating new manifest file for merged backup {} at root {}", mergedBackupId,
      backupRoot);
    manifest.store(conf);
  }
Converts path before copying
@param p             path
@param backupDirPath backup root
@return converted path
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/mapreduce/MapReduceBackupMergeJob.java