You are here

function backup_migrate_destination_ftp::_save_file in Backup and Migrate 6.3

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

Save to the ftp destination.

Overrides backup_migrate_destination::_save_file

File

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

Class

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

Code

function _save_file($file, $settings) {
  $ftp = $this
    ->ftp_object();
  if (drupal_ftp_file_to_ftp($file
    ->filepath(), $file
    ->filename(), '.', $ftp)) {
    return $file;
  }
  return FALSE;
}