You are here

function backup_migrate_destination_filesource::restore_from_file in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/sources.filesource.inc \backup_migrate_destination_filesource::restore_from_file()
  2. 7.3 includes/sources.filesource.inc \backup_migrate_destination_filesource::restore_from_file()

Restore to this source.

File

includes/sources.filesource.inc, line 144
A destination type for saving locally to the server.

Class

backup_migrate_destination_filesource
A destination type for saving locally to the server.

Code

function restore_from_file($file, &$settings) {
  if ($out = $this
    ->_restore_from_file_cli($file, $settings)) {
    return $out;
  }
  else {
    return $this
      ->_restore_from_file_php($file, $settings);
  }
}