<?php

$this->title(__('Backing Up', 'it-l10n-backupbuddy'));
require_once $this->_pluginPath . '/classes/backup.php';
$backup = new pluginbuddy_backupbuddy_backup($this);
if (defined('PB_DEMO_MODE')) {
    echo '<br>';
    $this->alert('You are currently running in demo mode. A backup file will not be created.', true);
}
if ($backup->start_backup_process($_GET['run_backup'], 'manual') !== true) {
    echo __('Error #4344443: Backup failure', 'it-l10n-backupbuddy');
    echo $backup->get_errors();
}
?>

<script type="text/javascript">
	jQuery(document).ready(function() {
			// Wait 2 seconds before first poll.
			setTimeout( 'backupbuddy_poll()' , 2000 );
			
			jQuery("#pb_backupbuddy_advanced_details").click(function() {
				jQuery("#pb_backupbuddy_advanced_details_div").slideToggle();
			});
			
			setInterval( 'blink_ledz()' , 600 );
	});
	
	
	var stale_archive_time_trigger = 25; // If this time ellapses without archive size increasing warn user that something may have gone wrong.
	
	keep_polling = 1;
예제 #2
0
 function cron_process_scheduled_backup($cron_id)
 {
     $this->load();
     $this->log('cron_process_scheduled_backup: ' . $cron_id);
     if (is_array($this->_options['schedules'][$cron_id])) {
         require_once $this->_pluginPath . '/classes/backup.php';
         $backup = new pluginbuddy_backupbuddy_backup($this);
         // If any remote destinations are set then add these to the steps to perform after the backup.
         $post_backup_steps = array();
         $destinations = explode('|', $this->_options['schedules'][$cron_id]['remote_destinations']);
         foreach ($destinations as $destination) {
             if (!empty($destination)) {
                 array_push($post_backup_steps, array('function' => 'send_remote_destination', 'args' => array($destination)));
             }
         }
         if ($this->_options['schedules'][$cron_id]['delete_after'] == '1') {
             array_push($post_backup_steps, array('function' => 'post_remote_delete', 'args' => array()));
         }
         if ($backup->start_backup_process($this->_options['schedules'][$cron_id]['type'], 'scheduled', array(), $post_backup_steps, $this->_options['schedules'][$cron_id]['title']) !== true) {
             error_log('FAILURE #4455484589 IN BACKUPBUDDY.');
             echo 'Error #4564658344443: Backup failure';
             echo $backup->get_errors();
         }
     }
     $this->log('Finished cron_process_scheduled_backup.');
 }