Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.10.5

Version Description

  • UPDATE: Change support request to forward to new support email address.
  • UPDATE: Leave copy of log in logs folder so when included when support logs are sent
  • UPDATE: Add additional logging on site info backup & DB export
Download this release

Release Info

Developer cssimmon
Plugin Icon 128x128 Backup and Restore WordPress – WPBackItUp Backup Plugin
Version 1.10.5
Comparing to
See all releases

Code changes from version 1.10.4 to 1.10.5

lib/includes/class-backup.php CHANGED
@@ -527,6 +527,7 @@ class WPBackItUp_Backup {
527
  $zip = new WPBackItUp_Zip($this->logger,$zip_file_path);
528
 
529
  foreach($file_list as $item) {
 
530
 
531
  //skip it if in ignore
532
  if ( !empty($ignore) && false!== strpos($item,$ignore)) {
@@ -546,6 +547,7 @@ class WPBackItUp_Backup {
546
  //replace the source path with the target
547
  $target_item_path = str_replace(rtrim($source_root, '/'),rtrim($target_root,'/'),$item);
548
 
 
549
  if ( $zip->add_file($item,$target_item_path)) {
550
  array_shift($file_list);
551
  $this->logger->log_info( __METHOD__, 'File Added:' . $target_item_path );
@@ -584,7 +586,7 @@ class WPBackItUp_Backup {
584
 
585
  //if there are no more files to add then rename the zip
586
  //Check to see if the file exists, it is possible that it does not if only empty folders were contained
587
- if(count($file_list)==0 && file_exists($zip_file_path) ){
588
  $this->logger->log_info( __METHOD__, 'Zip Actual Size after close:' . $zip->get_zip_actual_size());
589
  if (! $this->add_zip_suffix($zip_file_path)){
590
  return 'error';
527
  $zip = new WPBackItUp_Zip($this->logger,$zip_file_path);
528
 
529
  foreach($file_list as $item) {
530
+ $this->logger->log_info( __METHOD__, 'File:' . $item );
531
 
532
  //skip it if in ignore
533
  if ( !empty($ignore) && false!== strpos($item,$ignore)) {
547
  //replace the source path with the target
548
  $target_item_path = str_replace(rtrim($source_root, '/'),rtrim($target_root,'/'),$item);
549
 
550
+ $this->logger->log_info( __METHOD__, 'Add File:' .$target_item_path );
551
  if ( $zip->add_file($item,$target_item_path)) {
552
  array_shift($file_list);
553
  $this->logger->log_info( __METHOD__, 'File Added:' . $target_item_path );
586
 
587
  //if there are no more files to add then rename the zip
588
  //Check to see if the file exists, it is possible that it does not if only empty folders were contained
589
+ if(count($file_list)==0 && file_exists($zip_file_path) ){
590
  $this->logger->log_info( __METHOD__, 'Zip Actual Size after close:' . $zip->get_zip_actual_size());
591
  if (! $this->add_zip_suffix($zip_file_path)){
592
  return 'error';
lib/includes/class-sql.php CHANGED
@@ -102,12 +102,13 @@ class WPBackItUp_SQL {
102
 
103
 
104
  public function manual_export($sql_file_path) {
105
- $this->logger->log('(SQL.manual_export)Manually Create SQL Backup File:'.$sql_file_path);
106
 
107
  $mysqli = $this->connection;
108
  $mysqli->set_charset('utf8');
109
 
110
  if (false===$mysqli) {
 
111
  return false;
112
  }
113
 
@@ -143,7 +144,9 @@ class WPBackItUp_SQL {
143
  }
144
 
145
  // Cycle through each table
146
- foreach($tables as $table) {
 
 
147
  // Get content of each table
148
  $result = $mysqli->query('SELECT * FROM '. $table) ;
149
 
102
 
103
 
104
  public function manual_export($sql_file_path) {
105
+ $this->logger->log_info(__METHOD__,'Manually Create SQL Backup File:'.$sql_file_path);
106
 
107
  $mysqli = $this->connection;
108
  $mysqli->set_charset('utf8');
109
 
110
  if (false===$mysqli) {
111
+ $this->logger->log_error(__METHOD__,'No SQL Connection');
112
  return false;
113
  }
114
 
144
  }
145
 
146
  // Cycle through each table
147
+ foreach($tables as $table) {
148
+ $this->logger->log($table);
149
+
150
  // Get content of each table
151
  $result = $mysqli->query('SELECT * FROM '. $table) ;
152
 
lib/includes/job_backup.php CHANGED
@@ -726,10 +726,10 @@ function end_backup($err=null, $success=null){
726
  $logFilePath = $logger->logFilePath;
727
  $logger->close_file();
728
 
729
- //Move the log if it exists
730
  $newlogFilePath = $wp_backup->backup_project_path .$logFileName;
731
  if (null!=$success && file_exists($logFilePath)){
732
- rename($logFilePath,$newlogFilePath);
733
  }
734
 
735
  echo('Backup has completed');
726
  $logFilePath = $logger->logFilePath;
727
  $logger->close_file();
728
 
729
+ //COPY the log if it exists
730
  $newlogFilePath = $wp_backup->backup_project_path .$logFileName;
731
  if (null!=$success && file_exists($logFilePath)){
732
+ copy($logFilePath,$newlogFilePath);
733
  }
734
 
735
  echo('Backup has completed');
readme.txt CHANGED
@@ -151,6 +151,11 @@ Our online documentation and full list of FAQs can be found at [www.wpbackitup.c
151
 
152
 
153
  == Changelog ==
 
 
 
 
 
154
  = 1.10.4 =
155
  * Updates: Make registration section easier to use and add more status information
156
  * Updates: Add backups section with tips and backup count
151
 
152
 
153
  == Changelog ==
154
+ = 1.10.5 =
155
+ * UPDATE: Change support request to forward to new support email address.
156
+ * UPDATE: Leave copy of log in logs folder so when included when support logs are sent
157
+ * UPDATE: Add additional logging on site info backup & DB export
158
+
159
  = 1.10.4 =
160
  * Updates: Make registration section easier to use and add more status information
161
  * Updates: Add backups section with tips and backup count
wp-backitup.php CHANGED
@@ -13,7 +13,7 @@
13
  Plugin Name: WP Backitup
14
  Plugin URI: http://www.wpbackitup.com
15
  Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
16
- Version: 1.10.4
17
  Author: Chris Simmons
18
  Author URI: http://www.wpbackitup.com
19
  License: GPL3
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
35
  */
36
 
37
  define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
38
- define( 'WPBACKITUP__VERSION', '1.10.4');
39
  define( 'WPBACKITUP__DEBUG', false );
40
  define( 'WPBACKITUP__MINIMUM_WP_VERSION', '3.0' );
41
  define( 'WPBACKITUP__ITEM_NAME', 'WP Backitup' );
@@ -70,7 +70,7 @@ define( 'WPBACKITUP__TASK_TIMEOUT_SECONDS', 300);//300 = 5 minutes
70
  define( 'WPBACKITUP__SCRIPT_TIMEOUT_SECONDS', 900);//900 = 15 minutes
71
 
72
  define( 'WPBACKITUP__BACKUP_RETAINED_DAYS', 5);//5 days
73
- define( 'WPBACKITUP__SUPPORT_EMAIL', 'support@wpbackitup.com');
74
 
75
  define( 'WPBACKITUP__ZIP_MAX_FILE_SIZE', 524288000); //524288000; # 500Mb
76
  define( 'WPBACKITUP__THEMES_BATCH_SIZE', 5000); //~100kb each = 5000*100 = 500000 kb = 500 mb
13
  Plugin Name: WP Backitup
14
  Plugin URI: http://www.wpbackitup.com
15
  Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
16
+ Version: 1.10.5
17
  Author: Chris Simmons
18
  Author URI: http://www.wpbackitup.com
19
  License: GPL3
35
  */
36
 
37
  define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
38
+ define( 'WPBACKITUP__VERSION', '1.10.5');
39
  define( 'WPBACKITUP__DEBUG', false );
40
  define( 'WPBACKITUP__MINIMUM_WP_VERSION', '3.0' );
41
  define( 'WPBACKITUP__ITEM_NAME', 'WP Backitup' );
70
  define( 'WPBACKITUP__SCRIPT_TIMEOUT_SECONDS', 900);//900 = 15 minutes
71
 
72
  define( 'WPBACKITUP__BACKUP_RETAINED_DAYS', 5);//5 days
73
+ define( 'WPBACKITUP__SUPPORT_EMAIL', 'wpbackitupcomsupport@wpbackitup.freshdesk.com');
74
 
75
  define( 'WPBACKITUP__ZIP_MAX_FILE_SIZE', 524288000); //524288000; # 500Mb
76
  define( 'WPBACKITUP__THEMES_BATCH_SIZE', 5000); //~100kb each = 5000*100 = 500000 kb = 500 mb