Version Description
- 01/24/2013 =
- Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
- Removed some duplicate code; first attempt and resumptions now uses same code
- Added further parameters that should be removed on a wipe operation
- More logging of detected double runs
Download this release
Release Info
Developer | DavidAnderson |
Plugin | UpdraftPlus WordPress Backup Plugin |
Version | 1.3.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 1.3.8
- readme.txt +4 -3
- updraftplus.php +7 -4
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: David Anderson
|
3 |
Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
|
4 |
Requires at least: 3.2
|
5 |
-
Tested up to: 3.5
|
6 |
-
Stable tag: 1.3.
|
7 |
Donate link: http://david.dw-perspective.org.uk/donate
|
8 |
License: GPLv3 or later
|
9 |
|
@@ -141,10 +141,11 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
-
= 1.3.
|
145 |
* Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
|
146 |
* Removed some duplicate code; first attempt and resumptions now uses same code
|
147 |
* Added further parameters that should be removed on a wipe operation
|
|
|
148 |
|
149 |
= 1.3.2 - 01/23/2013 =
|
150 |
* Internal reorganisation, enabling UpdraftPlus Premium
|
2 |
Contributors: David Anderson
|
3 |
Tags: backup, restore, database, cloud, amazon, s3, dropbox, google drive, ftp, cloud, back up, multisite
|
4 |
Requires at least: 3.2
|
5 |
+
Tested up to: 3.5.1
|
6 |
+
Stable tag: 1.3.8
|
7 |
Donate link: http://david.dw-perspective.org.uk/donate
|
8 |
License: GPLv3 or later
|
9 |
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
+
= 1.3.8 - 01/24/2013 =
|
145 |
* Fixed faulty assumptions in 'resume' code, now leading to more reliable resuming
|
146 |
* Removed some duplicate code; first attempt and resumptions now uses same code
|
147 |
* Added further parameters that should be removed on a wipe operation
|
148 |
+
* More logging of detected double runs
|
149 |
|
150 |
= 1.3.2 - 01/23/2013 =
|
151 |
* Internal reorganisation, enabling UpdraftPlus Premium
|
updraftplus.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/updraftplus
|
5 |
Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
|
6 |
Author: David Anderson.
|
7 |
-
Version: 1.3.
|
8 |
Donate link: http://david.dw-perspective.org.uk/donate
|
9 |
License: GPLv3 or later
|
10 |
Author URI: http://wordshell.net
|
@@ -78,7 +78,7 @@ if (!class_exists('UpdraftPlus_Options')) require_once(UPDRAFTPLUS_DIR.'/options
|
|
78 |
|
79 |
class UpdraftPlus {
|
80 |
|
81 |
-
var $version = '1.3.
|
82 |
var $plugin_title = 'UpdraftPlus Backup/Restore';
|
83 |
|
84 |
// Choices will be shown in the admin menu in the order used here
|
@@ -661,8 +661,11 @@ class UpdraftPlus {
|
|
661 |
|
662 |
// Firstly, make sure that the temporary file is not already being written to - which can happen if a resumption takes place whilst an old run is still active
|
663 |
$zip_name = $full_path.'.tmp';
|
664 |
-
|
665 |
-
|
|
|
|
|
|
|
666 |
die;
|
667 |
}
|
668 |
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/updraftplus
|
5 |
Description: Backup and restore: your content and database can be automatically backed up to Amazon S3, Dropbox, Google Drive, FTP or email, on separate schedules.
|
6 |
Author: David Anderson.
|
7 |
+
Version: 1.3.8
|
8 |
Donate link: http://david.dw-perspective.org.uk/donate
|
9 |
License: GPLv3 or later
|
10 |
Author URI: http://wordshell.net
|
78 |
|
79 |
class UpdraftPlus {
|
80 |
|
81 |
+
var $version = '1.3.8';
|
82 |
var $plugin_title = 'UpdraftPlus Backup/Restore';
|
83 |
|
84 |
// Choices will be shown in the admin menu in the order used here
|
661 |
|
662 |
// Firstly, make sure that the temporary file is not already being written to - which can happen if a resumption takes place whilst an old run is still active
|
663 |
$zip_name = $full_path.'.tmp';
|
664 |
+
$time_mod = (int)filemtime($zip_name);
|
665 |
+
$time_now = time();
|
666 |
+
$file_size = filesize($zip_name);
|
667 |
+
if (file_exists($zip_name) && $time_mod>100 && ($time_mod-$time_now)<20) {
|
668 |
+
$this->log("Terminate: the temporary file $zip_name already exists, and was modified within the last 20 seconds (time_mod=$time_mod, time_now=$time_now, diff=".($time_mod-$time_now).", size=$file_size). This likely means that another UpdraftPlus run is still at work; so we will exit.");
|
669 |
die;
|
670 |
}
|
671 |
|