UpdraftPlus WordPress Backup Plugin - Version 1.5.9

Version Description

New features: selective restoration, importing remote backups; plus many tweaks, optimisations + small bug-fixes: recommended upgrade for all

Download this release

Release Info

Developer DavidAnderson
Plugin Icon 128x128 UpdraftPlus WordPress Backup Plugin
Version 1.5.9
Comparing to
See all releases

Code changes from version 1.5.8 to 1.5.9

Files changed (1) hide show
  1. updraftplus.php +10 -4
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://updraftplus.com
5
  Description: Backup and restore: your site can be backed up locally or to Amazon S3, Dropbox, Google Drive, (S)FTP, WebDAV & email, on automatic schedules.
6
  Author: UpdraftPlus.Com, DavidAnderson
7
- Version: 1.5.8
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
@@ -351,12 +351,20 @@ class UpdraftPlus {
351
  // This is scheduled for 5 minutes after a backup job starts
352
 
353
  // Restore state
 
354
  if ($resumption_no > 0) {
355
  $this->nonce = $bnonce;
356
  $this->backup_time = $this->jobdata_get('backup_time');
357
  $this->logfile_open($bnonce);
 
 
 
 
 
 
358
  }
359
 
 
360
  $btime = $this->backup_time;
361
 
362
  $job_type = $this->jobdata_get('job_type');
@@ -366,11 +374,9 @@ class UpdraftPlus {
366
  $time_ago = time()-$btime;
367
 
368
  $this->current_resumption = $resumption_no;
369
- $this->log("Backup run: resumption=$resumption_no, nonce=$bnonce, begun at=$btime (${time_ago}s ago), job type: $job_type");
370
 
371
  if ($resumption_no == 8) {
372
- $time_passed = $this->jobdata_get('run_times');
373
- if (!is_array($time_passed)) $time_passed = array();
374
  $timings_string = "";
375
  $run_times_known=0;
376
  for ($i=0; $i<=7; $i++) {
4
  Plugin URI: http://updraftplus.com
5
  Description: Backup and restore: your site can be backed up locally or to Amazon S3, Dropbox, Google Drive, (S)FTP, WebDAV & email, on automatic schedules.
6
  Author: UpdraftPlus.Com, DavidAnderson
7
+ Version: 1.5.9
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Text Domain: updraftplus
351
  // This is scheduled for 5 minutes after a backup job starts
352
 
353
  // Restore state
354
+ $resumption_extralog = '';
355
  if ($resumption_no > 0) {
356
  $this->nonce = $bnonce;
357
  $this->backup_time = $this->jobdata_get('backup_time');
358
  $this->logfile_open($bnonce);
359
+
360
+ $time_passed = $this->jobdata_get('run_times');
361
+ if (!is_array($time_passed)) $time_passed = array();
362
+
363
+ $prev_resumption = $resumption_no - 1;
364
+ if (isset($time_passed[$prev_resumption])) $resumption_extralog = ", previous check-in=".round($time_passed[$prev_resumption], 1)."s";
365
  }
366
 
367
+
368
  $btime = $this->backup_time;
369
 
370
  $job_type = $this->jobdata_get('job_type');
374
  $time_ago = time()-$btime;
375
 
376
  $this->current_resumption = $resumption_no;
377
+ $this->log("Backup run: resumption=$resumption_no, nonce=$bnonce, begun at=$btime (${time_ago}s ago), job type: $job_type".$resumption_extralog);
378
 
379
  if ($resumption_no == 8) {
 
 
380
  $timings_string = "";
381
  $run_times_known=0;
382
  for ($i=0; $i<=7; $i++) {