public/wordpress/wp-content/plugins/backupbuddy/classes/backup.php
// $sendFile may be an array of files BUT they must all be in the same $sendPath.
$sendFile may be an array of files BUT they must all be in the same $sendPath.
$sendFile may be an array of files BUT they must all be in the same $sendPath .
public function deploy_push_sendFile( $state, $sendFile, $sendPath, $sendType, $nextStep, $delete_after = false ) {
		$destination_settings = pb_backupbuddy_destinations::get_normalized_settings( $state['destination_id'] );
		$destination_settings['sendType'] = $sendType;
		$destination_settings['sendFilePath'] = $sendPath;
		$destination_settings['max_time'] = $state['minimumExecutionTime'];
		$identifier = $this->_backup['serial'] . '_' . md5( serialize( $sendFile ) . $sendType );
		if ( false === backupbuddy_core::send_remote_destination( $state['destination_id'], $sendFile, 'Deployment', $send_importbuddy = false, $delete_after, $identifier, $destination_settings ) ) {
			$sendFile = ''; 
		}
		$this->deploy_sendWait( $state, $sendFile, $sendPath, $sendType, $nextStep );
		return true;
	}
public function deploy_push_sendFile ( $ state , $ sendFile , $ sendPath , $ sendType , $ nextStep , $ delete_after = false ) { $ destination_settings = pb_backupbuddy_destinations :: get_normalized_settings ( $ state [ 'destination_id' ] ) ; $ destination_settings [ 'sendType' ] = $ sendType ; $ destination_settings [ 'sendFilePath' ] = $ sendPath ; $ destination_settings [ 'max_time' ] = $ state [ 'minimumExecutionTime' ] ; $ identifier = $ this -> _backup [ 'serial' ] . '_' . md5 ( serialize ( $ sendFile ) . $ sendType ) ; if ( false === backupbuddy_core :: send_remote_destination ( $ state [ 'destination_id' ] , $ sendFile , 'Deployment' , $ send_importbuddy = false , $ delete_after , $ identifier , $ destination_settings ) ) { $ sendFile = '' ; } $ this -> deploy_sendWait ( $ state , $ sendFile , $ sendPath , $ sendType , $ nextStep ) ; return true ; }
$sendFile may be an array of files BUT they must all be in the same $sendPath.
$sendFile may be an array of files BUT they must all be in the same $sendPath .
// Since failed just set file to blank so we can proceed to next without waiting.