public Properties readBackupProperties(URI backupLoc,String backupId) throws IOException {
  Preconditions.checkNotNull(backupLoc);
  Preconditions.checkNotNull(backupId);
  URI backupPath=repository.resolve(backupLoc,backupId);
  if (!repository.exists(backupPath)) {
    throw new SolrException(ErrorCode.SERVER_ERROR,"Couldn't restore since doesn't exist: " + backupPath);
  }
  Properties props=new Properties();
  try (Reader is=new InputStreamReader(new PropertiesInputStream(repository.openInput(backupPath,BACKUP_PROPS_FILE,IOContext.DEFAULT)),StandardCharsets.UTF_8)){
    props.load(is);
    return props;
  }
 }

public Properties readBackupProperties ( URI backupLoc , String backupId ) throws IOException { Preconditions . checkNotNull ( backupLoc ) ; Preconditions . checkNotNull ( backupId ) ; URI backupPath = repository . resolve ( backupLoc , backupId ) ; if ( ! repository . exists ( backupPath ) ) { throw new SolrException ( ErrorCode . SERVER_ERROR , "Couldn't restore since doesn't exist: " + backupPath ) ; } Properties props = new Properties ( ) ; try ( Reader is = new InputStreamReader ( new PropertiesInputStream ( repository . openInput ( backupPath , BACKUP_PROPS_FILE , IOContext . DEFAULT ) ) , StandardCharsets . UTF_8 ) ) { props . load ( is ) ; return props ; } }
this method returns the configuration parameters for the specified backup .
