function backup_migrate_destination_ftp::_save_file in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_save_file()
- 8.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_save_file()
- 6.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_save_file()
- 7.3 includes/destinations.ftp.inc \backup_migrate_destination_ftp::_save_file()
- 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 21 - 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;
}