UpdraftPlus WordPress Backup Plugin - Version 1.0.9

Version Description

  • 12/21/2012 =
  • Fixed bug that set 1Tb (instead of 1Mb) chunk sizes for Google Drive uploads
  • Added link to some screenshots to help with Google Drive setup
  • Allowed use of existing Amazon S3 buckets with restrictive policies (previously, we tested for the bucket's existence by running a create operation on it, which may not be permitted)
Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

Files changed (2) hide show
  1. readme.txt +11 -4
  2. updraftplus.php +6 -5
readme.txt CHANGED
@@ -3,12 +3,12 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, google drive, google, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
- Stable tag: 1.0.8
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
10
  == Upgrade Notice ==
11
- Fixed bug with Google Drive uploads
12
 
13
  == Description ==
14
 
@@ -43,7 +43,13 @@ That's very good of you, thank you. You are looking for WordShell, <a href="http
43
 
44
  = I found a bug. What do I do? =
45
 
46
- Contact me! This is a complex plugin and the only way I can ensure it's robust is to get bug reports and fix the problems that crop up. Please turn on debugging mode (in the UpdraftPlus options page) and then try again, and after that send me the log if you can find it (it is in the directory wp-content/updraft, so FTP in and look for it there). If you cannot find the log, then I may not be able to help, but you can try - include as much information as you can when reporting (PHP version, your blog's site, the error you saw and how you got to the page that caused it, etcetera). If you can send a patch, that's even better. Finally, if you post in the WordPress support forum, then make sure you include the word UpdraftPlus in your post; otherwise I will not be automatically notified that you posted.
 
 
 
 
 
 
47
 
48
  = Some of my files have uploaded into my cloud storage, but not others. =
49
 
@@ -81,9 +87,10 @@ No, there's no warranty or guarantee, etc. It's completely up to you to verify t
81
 
82
  == Changelog ==
83
 
84
- = 1.0.8 - 12/20/2012 =
85
  * Fixed bug that set 1Tb (instead of 1Mb) chunk sizes for Google Drive uploads
86
  * Added link to some screenshots to help with Google Drive setup
 
87
 
88
  = 1.0.5 - 12/13/2012 =
89
  * Tweaked default Google Drive options
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, google drive, google, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
+ Stable tag: 1.0.9
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
10
  == Upgrade Notice ==
11
+ Allowed use of existing Amazon S3 buckets with more restrictive policies
12
 
13
  == Description ==
14
 
43
 
44
  = I found a bug. What do I do? =
45
 
46
+ Contact me! This is a complex plugin and the only way I can ensure it's robust is to get bug reports and fix the problems that crop up. Please make sure you are using the latest version of the plugin, and that you include the version in your bug report - if you are not using the latest, then the first thing you will be asked to do is upgrade.
47
+
48
+ Please turn on debugging mode (in the UpdraftPlus options page) and then try again, and after that send me the log if you can find it (it is in the directory wp-content/updraft, so FTP in and look for it there). If you cannot find the log, then I may not be able to help, but you can try - include as much information as you can when reporting (PHP version, your blog's site, the error you saw and how you got to the page that caused it, etcetera).
49
+
50
+ If you can send a patch, that's even better.
51
+
52
+ Finally, if you post in the WordPress support forum, then make sure you include the word UpdraftPlus in your post; otherwise I will not be automatically notified that you posted.
53
 
54
  = Some of my files have uploaded into my cloud storage, but not others. =
55
 
87
 
88
  == Changelog ==
89
 
90
+ = 1.0.9 - 12/21/2012 =
91
  * Fixed bug that set 1Tb (instead of 1Mb) chunk sizes for Google Drive uploads
92
  * Added link to some screenshots to help with Google Drive setup
93
+ * Allowed use of existing Amazon S3 buckets with restrictive policies (previously, we tested for the bucket's existence by running a create operation on it, which may not be permitted)
94
 
95
  = 1.0.5 - 12/13/2012 =
96
  * Tweaked default Google Drive options
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
6
  Author: David Anderson.
7
- Version: 1.0.8
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -60,7 +60,7 @@ define('UPDRAFT_DEFAULT_OTHERS_EXCLUDE','upgrade,cache,updraft,index.php');
60
 
61
  class UpdraftPlus {
62
 
63
- var $version = '1.0.8';
64
 
65
  var $dbhandle;
66
  var $errors = array();
@@ -637,7 +637,8 @@ class UpdraftPlus {
637
  $bucket_path = $bmatches[2]."/";
638
  }
639
 
640
- if (@$s3->putBucket($bucket_name, S3::ACL_PRIVATE)) {
 
641
 
642
  foreach($backup_array as $file) {
643
 
@@ -1541,7 +1542,7 @@ class UpdraftPlus {
1541
  $bucket_name = $bmatches[1];
1542
  $bucket_path = $bmatches[2]."/";
1543
  }
1544
- if (@$s3->putBucket($bucket_name, S3::ACL_PRIVATE)) {
1545
  $fullpath = trailingslashit(get_option('updraft_dir')).$file;
1546
  if (!$s3->getObject($bucket_name, $bucket_path.$file, $fullpath)) {
1547
  $this->error("S3 Error: Failed to download $fullpath. Error was ".$php_errormsg);
@@ -2210,7 +2211,7 @@ echo $delete_local; ?> /> <br>Check this to delete the local backup file (only s
2210
  </tr>
2211
  <tr class="s3" <?php echo $s3_display?>>
2212
  <th></th>
2213
- <td><p>Get your access key and secret key from your AWS page, then pick a (globally unique) bucket name (letters and numbers) (and optionally a path) to use for storage.</p></td>
2214
  </tr>
2215
 
2216
  <!-- Google Drive -->
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
6
  Author: David Anderson.
7
+ Version: 1.0.9
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
60
 
61
  class UpdraftPlus {
62
 
63
+ var $version = '1.0.9';
64
 
65
  var $dbhandle;
66
  var $errors = array();
637
  $bucket_path = $bmatches[2]."/";
638
  }
639
 
640
+ // See if we can detect the region (which implies the bucket exists and is ours), or if not create it
641
+ if (@$s3->getBucketLocation($bucket_name) || @$s3->putBucket($bucket_name, S3::ACL_PRIVATE)) {
642
 
643
  foreach($backup_array as $file) {
644
 
1542
  $bucket_name = $bmatches[1];
1543
  $bucket_path = $bmatches[2]."/";
1544
  }
1545
+ if (@$s3->getBucketLocation($bucket_name)) {
1546
  $fullpath = trailingslashit(get_option('updraft_dir')).$file;
1547
  if (!$s3->getObject($bucket_name, $bucket_path.$file, $fullpath)) {
1548
  $this->error("S3 Error: Failed to download $fullpath. Error was ".$php_errormsg);
2211
  </tr>
2212
  <tr class="s3" <?php echo $s3_display?>>
2213
  <th></th>
2214
+ <td><p>Get your access key and secret key from your AWS page, then pick a (globally unique) bucket name (letters and numbers) (and optionally a path) to use for storage. This bucket will be created for you if it does not already exist.</p></td>
2215
  </tr>
2216
 
2217
  <!-- Google Drive -->