public/wordpress/wp-content/plugins/backupbuddy/classes/backup.php
/* deploy_pull_runningBackup()
	 *
	 * Wait for remote backup to complete. Log will be pulled in via AJAX waiting for completion. AJAX will need to tell us once it looks finished so we may proceed.
	 *
	 */
deploy_pull_runningBackup()
Wait for remote backup to complete. Log will be pulled in via AJAX waiting for completion. AJAX will need to tell us once it looks finished so we may proceed.
deploy_pull_runningBackup () Wait for remote backup to complete . Log will be pulled in via AJAX waiting for completion . AJAX will need to tell us once it looks finished so we may proceed .
public function deploy_pull_runningBackup( $state ) {
		if ( $this->_backup_options->options['deployment_log'] == get_transient( 'backupbuddy_deployPullBackup_finished' ) ) {
			pb_backupbuddy::status( 'details', 'Remote destination backup completed.' );
			$this->_backup_options->options['deployment_log'] = ''; 
			$this->_backup_options->save();
			pb_backupbuddy::status( 'details', 'Inserting deploy step to retrieve files including remote backup archive.' );
			$newStep = array(
				'function'		=>	'deploy_pull_files',
				'args'			=>	array( $state, $pullBackupArchive = $this->_backup_options->options['remote_backup_file'] ),
				'start_time'	=>	0,
				'finish_time'	=>	0,
				'attempts'		=>	0,
			);
			$this->insert_next_step( $newStep );
			delete_transient( 'backupbuddy_deployPullBackup_finished' );
			return true;
		}
		pb_backupbuddy::status( 'details', 'Inserting deploy step to wait for backup to finish on remote server.' );
		$newStep = array(
			'function'		=>	'deploy_pull_runningBackup',
			'args'			=>	array( $state ),
			'start_time'	=>	0,
			'finish_time'	=>	0,
			'attempts'		=>	0,
		);
		$this->insert_next_step( $newStep );
		return true;
	}
public function deploy_pull_runningBackup ( $ state ) { if ( $ this -> _backup_options -> options [ 'deployment_log' ] == get_transient ( 'backupbuddy_deployPullBackup_finished' ) ) { pb_backupbuddy :: status ( 'details' , 'Remote destination backup completed.' ) ; $ this -> _backup_options -> options [ 'deployment_log' ] = '' ; $ this -> _backup_options -> save ( ) ; pb_backupbuddy :: status ( 'details' , 'Inserting deploy step to retrieve files including remote backup archive.' ) ; $ newStep = array ( 'function' => 'deploy_pull_files' , 'args' => array ( $ state , $ pullBackupArchive = $ this -> _backup_options -> options [ 'remote_backup_file' ] ) , 'start_time' => 0 , 'finish_time' => 0 , 'attempts' => 0 , ) ; $ this -> insert_next_step ( $ newStep ) ; delete_transient ( 'backupbuddy_deployPullBackup_finished' ) ; return true ; } pb_backupbuddy :: status ( 'details' , 'Inserting deploy step to wait for backup to finish on remote server.' ) ; $ newStep = array ( 'function' => 'deploy_pull_runningBackup' , 'args' => array ( $ state ) , 'start_time' => 0 , 'finish_time' => 0 , 'attempts' => 0 , ) ; $ this -> insert_next_step ( $ newStep ) ; return true ; }
deploy_pull_runningBackup()
 Wait for remote backup to complete.
deploy_pull_runningBackup () Wait for remote backup to complete .
// Clear out deployment log so we will not keep hitting the remote server for the backup log, eg while retreiving remote files.