@RestrictedApi(explanation = "Should only be called internally or in tests", link = "",
      allowedOnPath = "(.*/src/test/.*|.*/org/apache/hadoop/hbase/backup/impl/BackupManifest.java)")
  public static BackupImage hydrateRootDir(BackupImage backupImage, Path backupPath)
    throws IOException {
    String providedRootDir =
      HBackupFileSystem.getRootDirFromBackupPath(backupPath, backupImage.backupId).toString();
    backupImage.setRootDir(providedRootDir);
    for (BackupImage ancestor : backupImage.getAncestors()) {
      ancestor.setRootDir(providedRootDir);
    }
    return backupImage;
  }
Construct manifest from a backup directory.
@param fs         the FileSystem
@param backupPath backup path
@throws BackupException exception
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java