You are here

public function backup_migrate_destination_db::backup_to_file in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.db.inc \backup_migrate_destination_db::backup_to_file()
  2. 8.3 includes/destinations.db.inc \backup_migrate_destination_db::backup_to_file()
  3. 6.2 includes/destinations.db.inc \backup_migrate_destination_db::backup_to_file()
  4. 7.2 includes/destinations.db.inc \backup_migrate_destination_db::backup_to_file()

Backup from this source.

File

includes/destinations.db.inc, line 154
Functions to handle the direct to database destination.

Class

backup_migrate_destination_db
A destination type for saving to a database server.

Code

public function backup_to_file($file, $settings) {
  $file
    ->push_type($this
    ->get_file_type_id());
  backup_migrate_filters_invoke_all('pre_backup', $this, $file, $settings);

  // $this->lock_tables($settings);
  // Switch to a different db if specified.
  $success = $this
    ->_backup_db_to_file($file, $settings);

  // $this->unlock_tables($settings);
  backup_migrate_filters_invoke_all('post_backup', $this, $file, $settings, $success);
  return $success ? $file : FALSE;
}