backupbuddy_backup/wp-content/plugins/backupbuddy/classes/backup.php
/*	send_remote_destination()
	 *	
	 *	Send the current backup to a remote destination such as S3, Dropbox, FTP, etc.
	 *	Scheduled remote sends end up coming through here before passing to core.
	 *	
	 *	@param		int		$destination_id		Destination ID (remote destination array index) to send to.
	 *	@param		boolean	$delete_after		Whether or not to delete backup file after THIS successful remote transfer.
	 *	@return		boolean						Returns result of pb_backupbuddy::send_remote_destination(). True (success) or false (failure).
	 */


Send the current backup to a remote destination such as S3, Dropbox, FTP, etc.
Scheduled remote sends end up coming through here before passing to core.

@param          int             $destination_id         Destination ID (remote destination array index) to send to.
@param          boolean $delete_after           Whether or not to delete backup file after THIS successful remote transfer.
Send the current backup to a remote destination such as S3 Dropbox FTP etc . Scheduled remote sends end up coming through here before passing to core . @param int $destination_id Destination ID ( remote destination array index ) to send to . @param boolean $delete_after Whether or not to delete backup file after THIS successful remote transfer .
function send_remote_destination( $destination_id, $delete_after = false ) {
		pb_backupbuddy::status( 'details', 'Sending file to remote destination ID: `' . $destination_id . '`. Delete after: `' . $delete_after . '`.' );
		pb_backupbuddy::status( 'details', 'IMPORTANT: If the transfer is set to be chunked then only the first chunk status will be displayed during this process. Subsequent chunks will happen after this has finished.' );
		$response = backupbuddy_core::send_remote_destination( $destination_id, $this->_backup['archive_file'], '', false, $delete_after );
		if ( false === $response ) { 
			$error_message = 'BackupBuddy failed sending a backup to the remote destination "' . pb_backupbuddy::$options['remote_destinations'][ $destination_id ]['title'] . '" (id: ' . $destination_id . '). Please verify and test destination settings and permissions. Check the error log for further details.';
			pb_backupbuddy::status( 'error', 'Failure sending to remote destination. Details: ' . $error_message );
			backupbuddy_core::mail_error( $error_message );
		}
	}
function send_remote_destination ( $ destination_id , $ delete_after = false ) { pb_backupbuddy :: status ( 'details' , 'Sending file to remote destination ID: `' . $ destination_id . '`. Delete after: `' . $ delete_after . '`.' ) ; pb_backupbuddy :: status ( 'details' , 'IMPORTANT: If the transfer is set to be chunked then only the first chunk status will be displayed during this process. Subsequent chunks will happen after this has finished.' ) ; $ response = backupbuddy_core :: send_remote_destination ( $ destination_id , $ this -> _backup [ 'archive_file' ] , '' , false , $ delete_after ) ; if ( false === $ response ) { $ error_message = 'BackupBuddy failed sending a backup to the remote destination "' . pb_backupbuddy :: $ options [ 'remote_destinations' ] [ $ destination_id ] [ 'title' ] . '" (id: ' . $ destination_id . '). Please verify and test destination settings and permissions. Check the error log for further details.' ; pb_backupbuddy :: status ( 'error' , 'Failure sending to remote destination. Details: ' . $ error_message ) ; backupbuddy_core :: mail_error ( $ error_message ) ; } }
send_remote_destination()
send_remote_destination ()
// Send failure.