You are here

function backup_migrate_destination_ftp::load_file in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::load_file()
  2. 8.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::load_file()
  3. 6.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::load_file()
  4. 7.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::load_file()
  5. 7.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::load_file()

Load from the ftp destination.

Overrides backup_migrate_destination::load_file

File

includes/destinations.ftp.inc, line 32
Functions to handle the FTP backup destination.

Class

backup_migrate_destination_ftp
A destination for sending database backups to an FTP server.

Code

function load_file($file_id) {
  backup_migrate_include('files');
  $file = new backup_file(array(
    'filename' => $file_id,
  ));
  $this
    ->ftp_object();
  if (drupal_ftp_ftp_to_file($file
    ->filepath(), $file_id, '.', $this->ftp)) {
    return $file;
  }
  return FALSE;
}