@@ -457,7 +457,7 @@ restore_backup(pgBackup *backup)
457457 */
458458pgBackupGetPath (backup ,database_path ,lengthof (database_path ),DATABASE_DIR );
459459pgBackupGetPath (backup ,list_path ,lengthof (list_path ),DATABASE_FILE_LIST );
460- files = dir_read_file_list (database_path ,list_path ,FIO_DB_HOST );
460+ files = dir_read_file_list (database_path ,list_path ,FIO_BACKUP_HOST );
461461
462462threads = (pthread_t * )palloc (sizeof (pthread_t )* num_threads );
463463threads_args = (restore_files_arg * )palloc (sizeof (restore_files_arg )* num_threads );
@@ -523,7 +523,7 @@ remove_deleted_files(pgBackup *backup)
523523
524524pgBackupGetPath (backup ,filelist_path ,lengthof (filelist_path ),DATABASE_FILE_LIST );
525525/* Read backup's filelist using target database path as base path */
526- files = dir_read_file_list (instance_config .pgdata ,filelist_path ,FIO_DB_HOST );
526+ files = dir_read_file_list (instance_config .pgdata ,filelist_path ,FIO_BACKUP_HOST );
527527parray_qsort (files ,pgFileComparePathDesc );
528528
529529/* Get list of files actually existing in target database */