UpdraftPlus WordPress Backup Plugin - Version 1.2.30

Version Description

  • 01/15/2013 =
  • Fixed bug with DropBox deletions
  • Fixed cases where DropBox failed to resume chunked uploading
  • Can now create uncreated zip files on a resumption attempt
  • FTP method now supports SSL (automatically detected)
  • New "Test FTP settings" button
  • Less noise when debugging is turned off
Download this release

Release Info

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

Code changes from version 1.2.29 to 1.2.30

Files changed (2) hide show
  1. readme.txt +24 -16
  2. updraftplus.php +3 -3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, DropBox, DropBox backup, 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.2.29
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
@@ -34,9 +34,13 @@ Standard WordPress plugin installation:
34
 
35
  == Frequently Asked Questions ==
36
 
37
- = How is this better than the original Updraft? =
38
 
39
- You can check the changelog for changes; but the original Updraft, before I forked it, had three major problems. Firstly, it only backed up WP core tables from the database; if any of your plugins stored data in extra tables, then they were not backed up. Secondly, it only backed up your plugins/themes/uploads and not any further directories inside wp-content that other plugins might have created. Thirdly, the database backup did not include charset information, which meant that you needed to know some SQL wizardry to actually be able to use the backup. I made UpdraftPlus out of my experience of trying to back up several sites with Updraft. Then, I added encryption for the database file for extra peace of mind, and future-proofed by getting rid of some deprecated aspects.
 
 
 
 
40
 
41
  = I like automating WordPress, and using the command-line. Please tell me more. =
42
 
@@ -44,21 +48,25 @@ That's very good of you, thank you. You are looking for WordShell, <a href="http
44
 
45
  = I found a bug. What do I do? =
46
 
47
- 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.
 
 
 
 
48
 
49
- 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 (there are links to download logs on the UpdraftPlus settings page; failing that, 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).
50
 
51
- If you can send a patch, that's even better.
52
 
53
  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.
54
 
55
- = My enormous website is hosted by a dirt-cheap provider who starve my account of resources, and UpdraftPlus runs out of time! Help! Please make UpdraftPlus deal with this situation so that I can save two dollars! =
56
 
57
- UpdraftPlus supports resuming backup runs, so that it does not need to do everything in a single go; but this has limits. If your website is huge and your web hosting company gives your tiny resources on an over-loaded server, then your solution is to purchase better web hosting, or to hire me professionally. Otherwise, this is not considered a bug. UpdraftPlus is known to successfully back up websites that run into the gigabytes on web servers that are not resource-starved.
58
 
59
  = Some of my files have uploaded into my cloud storage, but not others. =
60
 
61
- From version 0.9.0, UpdraftPlus features a resumption feature - if you wait 5 minutes and visit a page on your site, then it should re-try not-yet-uploaded files. If that fails, then turn on debugging and paste the debug log (log in via FTP, and look in wp-content/updraft) into the support forum.
62
 
63
  = How do I restore my backup (from a site that is still installed/running)? =
64
 
@@ -74,17 +82,17 @@ That's no problem. If you have access to your backed files (i.e. you have the em
74
 
75
  After you have set up UpdraftPlus, you must check that your backups are taking place successfully. WordPress is a complex piece of software that runs in many situations. Don't wait until you need your backups before you find out that they never worked in the first place. Remember, there's no warranty and no guarantees - this is free software.
76
 
77
- = What exactly does UpdraftPlus back up ? =
78
 
79
- Unless you disable any of these, it will back up your database (all tables which have been prefixed with the prefix for this WordPress installation, both core tables and extra ones added by plugins), your plugins folder, your themes folder, your uploads folder and any extra folders that other plugins have created in the WordPress content directory.
80
 
81
- = What does UpdraftPlus not back up ? =
82
 
83
- It does not back up WordPress core (since you can always get another copy of this from wordpress.org), and does not back up any extra files which you have added outside of the WordPress content directory (files which, by their nature, are unknown to WordPress). By default the WordPress content directory is "wp-content" in your WordPress root. It will not back up database tables which do not have the WordPress prefix (i.e. database tables from other applications but sharing a database with WordPress).
84
 
85
  = Any known bugs ? =
86
 
87
- Not a bug as such, but one major issue to be aware of is that backups of very large sites (lots of uploaded media) can fail due to timing out. This depends on how many seconds your web host allows a PHP process to run. With such sites, you need to use Amazon S3, which UpdraftPlus supports (since 0.9.20) or Google Drive (since 0.9.21) or DropBox (since 1.2.19) with chunked, resumable uploads. Other backup methods have code (since 0.9.0) to retry failed uploads of an archive, but the upload cannot be chunked, so if an archive is enormous (i.e. cannot be completely uploaded in the time that PHP is allowed for running on your web host) it cannot work.
88
 
89
  = I encrypted my database - how do I decrypt it? =
90
 
@@ -112,7 +120,7 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
112
 
113
  == Changelog ==
114
 
115
- = 1.2.29 - 01/15/2013 =
116
  * Fixed bug with DropBox deletions
117
  * Fixed cases where DropBox failed to resume chunked uploading
118
  * Can now create uncreated zip files on a resumption attempt
@@ -246,7 +254,7 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
246
 
247
  == License ==
248
 
249
- Portions copyright 2011-2 David Anderson
250
  Portions copyright 2010 Paul Kehrer
251
 
252
  This program is free software; you can redistribute it and/or modify
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, DropBox, DropBox backup, 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.2.30
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
34
 
35
  == Frequently Asked Questions ==
36
 
37
+ = What exactly does UpdraftPlus back up ? =
38
 
39
+ Unless you disable any of these, it will back up your database (all tables which have been prefixed with the prefix for this WordPress installation, both core tables and extra ones added by plugins), your plugins folder, your themes folder, your uploads folder and any extra folders that other plugins have created in the WordPress content directory.
40
+
41
+ = What does UpdraftPlus not back up ? =
42
+
43
+ It does not back up WordPress core (since you can always get another copy of this from wordpress.org), and does not back up any extra files which you have added outside of the WordPress content directory (files which, by their nature, are unknown to WordPress). By default the WordPress content directory is "wp-content" in your WordPress root. It will not back up database tables which do not have the WordPress prefix (i.e. database tables from other applications but sharing a database with WordPress).
44
 
45
  = I like automating WordPress, and using the command-line. Please tell me more. =
46
 
48
 
49
  = I found a bug. What do I do? =
50
 
51
+ Firstly, please make sure you read this FAQ through to the end - it may already have the answer you need. If it does, then please consider a donation (http://david.dw-perspective.org.uk/donate); it takes time to develop this plugin and FAQ.
52
+
53
+ If it does not, then 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.
54
+
55
+ 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 (there are links to download logs on the UpdraftPlus settings page; or you may be emailed it; failing that, 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 so much, 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).
56
 
57
+ If you know where to find your PHP error logs (often a file called error_log, possibly in your wp-admin directory (check via FTP)), then that's even better (don't send me multi-megabytes; just send the few lines that appear when you run a backup, if any).
58
 
59
+ If you are a programmer and can send a patch, then that's even better.
60
 
61
  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.
62
 
63
+ = My scheduled backups and pressing "Backup Now" does nothing; however pressing "Debug Backup" does produce a backup =
64
 
65
+ This almost always indicates a problem with the scheduler in your WordPress installation. Schedule a backup (by pressing "Backup Now"), wait 5 seconds, and then run the wp-cron.php script on your site (e.g. http://example.com/wp-cron.php). If absolutely nothing happens (i.e. no log file appears in your wp-content/updraft directory), then you should contact your web hosting provider. We have heard of web hosting providers who have disabled this part of WordPress. Also, it is possible for other plugins to accidentally do this. Disable any cacheing plugins (e.g. WP Super Cache, WP Total Cache), plus any others that you can temporarily live without, and try the backup again. If the backup then succeeds, then you need to report the bug to the author of the guilty plugin.
66
 
67
  = Some of my files have uploaded into my cloud storage, but not others. =
68
 
69
+ From version 0.9.0, UpdraftPlus features a resumption feature - if you wait 5 minutes and visit a page on your site, then it should re-try not-yet-uploaded files. If that fails, then turn on debugging and paste the debug log (log in via FTP, and look in wp-content/updraft) into the support forum. Before asking for support, make sure that you: 1) Have started a backup, and then waited at least an hour (because UpdraftPlus will keep trying) 2) Not started any new backups in the mean-time (that may cancel the earlier backup) 3) Have the log of the failed backup attempt, and that log only (please don't bombard me with every log file you could find - this only slows me down).
70
 
71
  = How do I restore my backup (from a site that is still installed/running)? =
72
 
82
 
83
  After you have set up UpdraftPlus, you must check that your backups are taking place successfully. WordPress is a complex piece of software that runs in many situations. Don't wait until you need your backups before you find out that they never worked in the first place. Remember, there's no warranty and no guarantees - this is free software.
84
 
85
+ = My enormous website is hosted by a dirt-cheap provider who starve my account of resources, and UpdraftPlus runs out of time! Help! Please make UpdraftPlus deal with this situation so that I can save two dollars! =
86
 
87
+ UpdraftPlus supports resuming backup runs, so that it does not need to do everything in a single go; but this has limits. If your website is huge and your web hosting company gives your tiny resources on an over-loaded server, then your solution is to purchase better web hosting, or to hire me professionally. Otherwise, this is not considered a bug. UpdraftPlus is known to successfully back up websites that run into the gigabytes on web servers that are not resource-starved.
88
 
89
+ = How is this better than the original Updraft? =
90
 
91
+ You can check the changelog for changes; but the original Updraft, before I forked it, had three major problems. Firstly, it only backed up WP core tables from the database; if any of your plugins stored data in extra tables, then they were not backed up. Secondly, it only backed up your plugins/themes/uploads and not any further directories inside wp-content that other plugins might have created. Thirdly, the database backup did not include charset information, which meant that you needed to know some SQL wizardry to actually be able to use the backup. I made UpdraftPlus out of my experience of trying to back up several sites with Updraft. Then, I added encryption for the database file for extra peace of mind, and future-proofed by getting rid of some deprecated aspects. Since then, many new features have been added, e.g. resuming of failed uploads, and DropBox support.
92
 
93
  = Any known bugs ? =
94
 
95
+ Not a bug as such, but one issue to be aware of is that backups of very large sites (lots of uploaded media) can fail, or require a longer period of time to succeed, due to timing out. This depends on how many seconds your web host allows a PHP process to run and how many resources they give you. With such sites, you need to use Amazon S3, which UpdraftPlus supports (since 0.9.20) or Google Drive (since 0.9.21) or DropBox (since 1.2.19) with chunked, resumable uploads. Other backup methods have code (since 0.9.0) to retry failed uploads of an archive, but the upload cannot be chunked, so if an archive is enormous (i.e. cannot be completely uploaded in the time that PHP is allowed for running on your web host) it cannot work.
96
 
97
  = I encrypted my database - how do I decrypt it? =
98
 
120
 
121
  == Changelog ==
122
 
123
+ = 1.2.30 - 01/15/2013 =
124
  * Fixed bug with DropBox deletions
125
  * Fixed cases where DropBox failed to resume chunked uploading
126
  * Can now create uncreated zip files on a resumption attempt
254
 
255
  == License ==
256
 
257
+ Portions copyright 2011-3 David Anderson
258
  Portions copyright 2010 Paul Kehrer
259
 
260
  This program is free software; you can redistribute it and/or modify
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 emailed, on separate schedules.
6
  Author: David Anderson.
7
- Version: 1.2.29
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -64,7 +64,7 @@ define('UPDRAFT_DEFAULT_OTHERS_EXCLUDE','upgrade,cache,updraft,index.php');
64
 
65
  class UpdraftPlus {
66
 
67
- var $version = '1.2.29';
68
 
69
  // Choices will be shown in the admin menu in the order used here
70
  var $backup_methods = array (
@@ -769,7 +769,7 @@ class UpdraftPlus {
769
  }
770
 
771
  if (count($other_dirlist)>0) {
772
- $created = $this->create_zip('others', $other_dirlist, $updraft_dir, $backup_file_basename);
773
  if ($created) $backup_array['others'] = $created;
774
  } else {
775
  $this->log("No backup of other directories: there was nothing found to back up");
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 emailed, on separate schedules.
6
  Author: David Anderson.
7
+ Version: 1.2.30
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
64
 
65
  class UpdraftPlus {
66
 
67
+ var $version = '1.2.30';
68
 
69
  // Choices will be shown in the admin menu in the order used here
70
  var $backup_methods = array (
769
  }
770
 
771
  if (count($other_dirlist)>0) {
772
+ $created = $this->create_zip($other_dirlist, 'others', $updraft_dir, $backup_file_basename);
773
  if ($created) $backup_array['others'] = $created;
774
  } else {
775
  $this->log("No backup of other directories: there was nothing found to back up");