Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version 1.12.6

Version Description

Release date: January 16th, 2020

  • Update: Open logs full screen.
  • Update: Added additional info to the logs.
  • Update: Logs now listen for signals, can log when a script is killed.
Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version 1.12.6
Comparing to
See all releases

Code changes from version 1.12.5 to 1.12.6

admin/class-boldgrid-backup-admin-log-page.php CHANGED
@@ -90,7 +90,7 @@ class Boldgrid_Backup_Admin_Log_Page {
90
  }
91
 
92
  // Good to go.
93
- $markup = '<div style="overflow:auto;white-space:pre;font-family:\'Courier New\';">' . esc_html( $contents ) . '</div>';
94
  wp_send_json_success( $markup );
95
  }
96
  }
90
  }
91
 
92
  // Good to go.
93
+ $markup = '<div style="overflow:auto;white-space:pre-wrap;font-family:\'Courier New\';">' . esc_html( $contents ) . '</div>';
94
  wp_send_json_success( $markup );
95
  }
96
  }
admin/class-boldgrid-backup-admin-log.php CHANGED
@@ -78,6 +78,19 @@ class Boldgrid_Backup_Admin_Log {
78
  $this->core->wp_filesystem->put_contents( $this->filepath, $file_content );
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  /**
82
  * Add info to the log about memory usage.
83
  *
@@ -144,7 +157,77 @@ class Boldgrid_Backup_Admin_Log {
144
 
145
  $this->filepath = $this->core->backup_dir->get_logs_dir() . DIRECTORY_SEPARATOR . $this->filename;
146
 
147
- // Create the file.
148
- return $this->core->wp_filesystem->touch( $this->filepath );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  }
150
  }
78
  $this->core->wp_filesystem->put_contents( $this->filepath, $file_content );
79
  }
80
 
81
+ /**
82
+ * Add generic info for all logs.
83
+ *
84
+ * @since 1.12.6
85
+ */
86
+ public function add_generic() {
87
+ $this->add( 'PHP Version: ' . phpversion() );
88
+
89
+ $this->add( 'WordPress Version: ' . get_bloginfo( 'version' ) );
90
+
91
+ $this->add( 'Total Upkeep version: ' . BOLDGRID_BACKUP_VERSION );
92
+ }
93
+
94
  /**
95
  * Add info to the log about memory usage.
96
  *
157
 
158
  $this->filepath = $this->core->backup_dir->get_logs_dir() . DIRECTORY_SEPARATOR . $this->filename;
159
 
160
+ $this->init_signal_handler();
161
+
162
+ $log_created = $this->core->wp_filesystem->touch( $this->filepath );
163
+
164
+ if ( $log_created ) {
165
+ $this->add_generic();
166
+ }
167
+
168
+ return $log_created;
169
+ }
170
+
171
+ /**
172
+ * Add signal handlers.
173
+ *
174
+ * The one signal we can't handle is SIGFILL (kill -9).
175
+ *
176
+ * @since 1.12.6
177
+ */
178
+ private function init_signal_handler() {
179
+ /*
180
+ * Available only on php >= 7.1
181
+ *
182
+ * With PHP 7.1, pcntl_async_signals was added to enable asynchronous signal handling, and it
183
+ * works great.
184
+ *
185
+ * Using ticks in php 5.6 not working as expected.
186
+ */
187
+ if ( ! version_compare( phpversion(), '7.1', '>=' ) ) {
188
+ return;
189
+ }
190
+
191
+ if ( ! function_exists( 'pcntl_async_signals' ) ) {
192
+ $this->add( 'Cannot add signal handlers, pcntl_async_signals function does not exist.' );
193
+ return;
194
+ }
195
+
196
+ // Enable asynchronous signal handling.
197
+ pcntl_async_signals( true );
198
+
199
+ $signals = [
200
+ // Ctrl+C.
201
+ SIGINT,
202
+ // Ctrl+\ (similiar to SIGINT, generates a core dump if necessary).
203
+ SIGQUIT,
204
+ // kill.
205
+ SIGTERM,
206
+ // Terminal log-out.
207
+ SIGHUP,
208
+ /*
209
+ * Apache graceful stop.
210
+ *
211
+ * @link https://stackoverflow.com/questions/780853/what-is-in-apache-2-a-caught-sigwinch-error
212
+ */
213
+ SIGWINCH,
214
+ ];
215
+
216
+ foreach ( $signals as $signal ) {
217
+ pcntl_signal( $signal, [ $this, 'signal_handler' ] );
218
+ }
219
+ }
220
+
221
+ /**
222
+ * Signal handler.
223
+ *
224
+ * @since 1.12.6
225
+ *
226
+ * @param int The signal being handled.
227
+ */
228
+ public function signal_handler( $signo ) {
229
+ $this->add( 'Signal received: ' . $signo );
230
+
231
+ exit;
232
  }
233
  }
admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php CHANGED
@@ -253,8 +253,14 @@ class Boldgrid_Backup_Admin_Compressor_Php_Zip extends Boldgrid_Backup_Admin_Com
253
  }
254
  }
255
 
 
 
 
256
  $close = $this->zip->close();
257
 
 
 
 
258
  Boldgrid_Backup_Admin_In_Progress_Data::delete_arg( 'step' );
259
 
260
  if ( ! $close ) {
253
  }
254
  }
255
 
256
+ $this->core->logger->add( 'Starting to close the zip file.' );
257
+ $this->core->logger->add_memory();
258
+
259
  $close = $this->zip->close();
260
 
261
+ $this->core->logger->add( 'Finished closing the zip file.' );
262
+ $this->core->logger->add_memory();
263
+
264
  Boldgrid_Backup_Admin_In_Progress_Data::delete_arg( 'step' );
265
 
266
  if ( ! $close ) {
admin/css/boldgrid-backup-admin.css CHANGED
@@ -330,3 +330,21 @@ p > .bgbkup-remote-logo {
330
  margin-left: 10px;
331
  padding-left: 23px;
332
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  margin-left: 10px;
331
  padding-left: 23px;
332
  }
333
+
334
+ /**
335
+ * Misc.
336
+ */
337
+
338
+ /* Allow the standard Thickbox to be shown full screen. */
339
+ #TB_window.bg-full-screen {
340
+ margin: 0 !important;
341
+ top: 30px;
342
+ left: 30px;
343
+ width: calc( 100% - 60px ) !important;
344
+ height: calc( 100% - 60px );
345
+ }
346
+
347
+ #TB_window.bg-full-screen #TB_ajaxContent {
348
+ width: calc( 100% - 40px ) !important;
349
+ height: calc( 100% - 60px ) !important;
350
+ }
admin/js/boldgrid-backup-admin-logs.js CHANGED
@@ -62,6 +62,8 @@ BOLDGRID.BACKUP = BOLDGRID.BACKUP || {};
62
  * worked. To be on the safe side, we're using 10ms.
63
  */
64
  setTimeout( function() {
 
 
65
  $( '#TB_ajaxContent' ).html(
66
  '<p id="bgbu_thickbox_loading">' +
67
  self.i18n.loading +
62
  * worked. To be on the safe side, we're using 10ms.
63
  */
64
  setTimeout( function() {
65
+ $( '#TB_window' ).addClass( 'bg-full-screen' );
66
+
67
  $( '#TB_ajaxContent' ).html(
68
  '<p id="bgbu_thickbox_loading">' +
69
  self.i18n.loading +
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
- * Version: 1.12.5
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
+ * Version: 1.12.6
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1579033182">
3
- <project timestamp="1579033182">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
6
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
@@ -2917,7 +2917,7 @@
2917
  <line num="1903" type="stmt" count="4"/>
2918
  <line num="1904" type="stmt" count="0"/>
2919
  <line num="1906" type="stmt" count="4"/>
2920
- <line num="1907" type="stmt" count="2"/>
2921
  <line num="1910" type="stmt" count="4"/>
2922
  <line num="1911" type="stmt" count="3"/>
2923
  <line num="1914" type="stmt" count="4"/>
@@ -5060,7 +5060,7 @@
5060
  </file>
5061
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-log.php">
5062
  <class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5063
- <metrics complexity="8" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="36" coveredstatements="33" elements="41" coveredelements="37"/>
5064
  </class>
5065
  <line num="55" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="17"/>
5066
  <line num="56" type="stmt" count="17"/>
@@ -5071,39 +5071,69 @@
5071
  <line num="77" type="stmt" count="3"/>
5072
  <line num="78" type="stmt" count="3"/>
5073
  <line num="79" type="stmt" count="3"/>
5074
- <line num="86" type="method" name="add_memory" visibility="public" complexity="1" crap="1" count="3"/>
5075
  <line num="87" type="stmt" count="3"/>
5076
- <line num="88" type="stmt" count="3"/>
5077
  <line num="89" type="stmt" count="3"/>
5078
  <line num="91" type="stmt" count="3"/>
5079
  <line num="92" type="stmt" count="3"/>
5080
- <line num="93" type="stmt" count="3"/>
5081
- <line num="94" type="stmt" count="3"/>
5082
- <line num="95" type="stmt" count="3"/>
5083
- <line num="96" type="stmt" count="3"/>
5084
- <line num="97" type="stmt" count="3"/>
5085
- <line num="98" type="stmt" count="3"/>
5086
  <line num="100" type="stmt" count="3"/>
5087
  <line num="101" type="stmt" count="3"/>
5088
- <line num="108" type="method" name="clean_up" visibility="public" complexity="4" crap="4.25" count="3"/>
 
 
 
 
 
 
5089
  <line num="110" type="stmt" count="3"/>
5090
  <line num="111" type="stmt" count="3"/>
5091
  <line num="113" type="stmt" count="3"/>
5092
- <line num="115" type="stmt" count="2"/>
5093
- <line num="116" type="stmt" count="0"/>
5094
- <line num="120" type="stmt" count="2"/>
5095
- <line num="121" type="stmt" count="2"/>
5096
- <line num="122" type="stmt" count="2"/>
5097
- <line num="125" type="stmt" count="0"/>
5098
- <line num="127" type="stmt" count="0"/>
5099
- <line num="128" type="stmt" count="3"/>
5100
- <line num="129" type="stmt" count="3"/>
5101
- <line num="139" type="method" name="init" visibility="public" complexity="1" crap="1" count="3"/>
 
 
5102
  <line num="141" type="stmt" count="3"/>
5103
- <line num="143" type="stmt" count="3"/>
5104
- <line num="145" type="stmt" count="3"/>
5105
- <line num="148" type="stmt" count="3"/>
5106
- <metrics loc="150" ncloc="62" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="36" coveredstatements="33" elements="41" coveredelements="37"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5107
  </file>
5108
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
5109
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -7624,7 +7654,7 @@
7624
  </file>
7625
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
7626
  <class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
7627
- <metrics complexity="29" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="124" coveredstatements="103" elements="128" coveredelements="105"/>
7628
  </class>
7629
  <line num="69" type="method" name="add_dir" visibility="public" complexity="4" crap="4" count="3"/>
7630
  <line num="70" type="stmt" count="3"/>
@@ -7640,7 +7670,7 @@
7640
  <line num="83" type="stmt" count="3"/>
7641
  <line num="84" type="stmt" count="3"/>
7642
  <line num="85" type="stmt" count="3"/>
7643
- <line num="113" type="method" name="archive_files" visibility="public" complexity="19" crap="20.93" count="3"/>
7644
  <line num="114" type="stmt" count="3"/>
7645
  <line num="117" type="stmt" count="3"/>
7646
  <line num="118" type="stmt" count="3"/>
@@ -7716,45 +7746,49 @@
7716
  <line num="253" type="stmt" count="0"/>
7717
  <line num="254" type="stmt" count="3"/>
7718
  <line num="256" type="stmt" count="3"/>
7719
- <line num="258" type="stmt" count="3"/>
7720
- <line num="260" type="stmt" count="3"/>
7721
- <line num="262" type="stmt" count="0"/>
7722
- <line num="263" type="stmt" count="0"/>
 
7723
  <line num="266" type="stmt" count="3"/>
7724
- <line num="274" type="method" name="is_available" visibility="public" complexity="2" crap="2" count="18"/>
7725
- <line num="275" type="stmt" count="18"/>
7726
- <line num="285" type="method" name="test" visibility="public" complexity="4" crap="4.20" count="1"/>
7727
- <line num="286" type="stmt" count="1"/>
7728
- <line num="287" type="stmt" count="0"/>
7729
- <line num="290" type="stmt" count="1"/>
7730
  <line num="292" type="stmt" count="1"/>
7731
- <line num="294" type="stmt" count="1"/>
7732
  <line num="296" type="stmt" count="1"/>
7733
- <line num="299" type="stmt" count="1"/>
 
7734
  <line num="302" type="stmt" count="1"/>
7735
- <line num="303" type="stmt" count="1"/>
7736
- <line num="304" type="stmt" count="1"/>
7737
  <line num="305" type="stmt" count="1"/>
7738
- <line num="306" type="stmt" count="1"/>
7739
- <line num="307" type="stmt" count="1"/>
7740
  <line num="309" type="stmt" count="1"/>
7741
  <line num="310" type="stmt" count="1"/>
 
7742
  <line num="312" type="stmt" count="1"/>
7743
- <line num="313" type="stmt" count="0"/>
7744
- <line num="314" type="stmt" count="0"/>
7745
- <line num="316" type="stmt" count="0"/>
7746
- <line num="319" type="stmt" count="1"/>
7747
- <line num="320" type="stmt" count="1"/>
7748
- <line num="322" type="stmt" count="1"/>
7749
- <line num="324" type="stmt" count="1"/>
 
7750
  <line num="326" type="stmt" count="1"/>
7751
  <line num="328" type="stmt" count="1"/>
7752
- <line num="329" type="stmt" count="0"/>
7753
- <line num="330" type="stmt" count="0"/>
7754
- <line num="332" type="stmt" count="0"/>
7755
- <line num="335" type="stmt" count="1"/>
7756
- <line num="337" type="stmt" count="1"/>
7757
- <metrics loc="339" ncloc="190" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="124" coveredstatements="103" elements="128" coveredelements="105"/>
 
 
 
7758
  </file>
7759
  <package name="Boldgrid\Backup\Admin\Cron">
7760
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
@@ -67876,7 +67910,7 @@
67876
  </file>
67877
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
67878
  <class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
67879
- <metrics complexity="22" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="114" coveredstatements="114" elements="123" coveredelements="123"/>
67880
  </class>
67881
  <line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
67882
  <line num="42" type="stmt" count="1"/>
@@ -67954,54 +67988,58 @@
67954
  <line num="224" type="stmt" count="2"/>
67955
  <line num="225" type="stmt" count="2"/>
67956
  <line num="227" type="stmt" count="2"/>
67957
- <line num="235" type="method" name="setUp" visibility="public" complexity="1" crap="1" count="3"/>
67958
  <line num="236" type="stmt" count="3"/>
67959
  <line num="238" type="stmt" count="3"/>
67960
- <line num="240" type="stmt" count="3"/>
67961
- <line num="242" type="stmt" count="3"/>
 
67962
  <line num="243" type="stmt" count="3"/>
67963
- <line num="250" type="method" name="test_archive_files" visibility="public" complexity="1" crap="1" count="1"/>
67964
- <line num="251" type="stmt" count="1"/>
67965
- <line num="254" type="stmt" count="1"/>
67966
- <line num="255" type="stmt" count="1"/>
67967
- <line num="268" type="stmt" count="1"/>
67968
- <line num="269" type="stmt" count="1"/>
67969
- <line num="270" type="stmt" count="1"/>
67970
- <line num="271" type="stmt" count="1"/>
67971
  <line num="273" type="stmt" count="1"/>
 
 
67972
  <line num="276" type="stmt" count="1"/>
67973
- <line num="279" type="stmt" count="1"/>
67974
- <line num="282" type="stmt" count="1"/>
67975
- <line num="283" type="stmt" count="1"/>
67976
  <line num="284" type="stmt" count="1"/>
67977
- <line num="285" type="stmt" count="1"/>
67978
  <line num="288" type="stmt" count="1"/>
67979
  <line num="289" type="stmt" count="1"/>
67980
  <line num="290" type="stmt" count="1"/>
67981
- <line num="297" type="method" name="test_restore_archive_file" visibility="public" complexity="2" crap="2" count="1"/>
67982
- <line num="305" type="stmt" count="1"/>
67983
- <line num="306" type="stmt" count="1"/>
67984
- <line num="307" type="stmt" count="1"/>
67985
- <line num="309" type="stmt" count="1"/>
 
67986
  <line num="312" type="stmt" count="1"/>
67987
- <line num="313" type="stmt" count="1"/>
67988
  <line num="314" type="stmt" count="1"/>
67989
- <line num="316" type="stmt" count="1"/>
67990
  <line num="318" type="stmt" count="1"/>
67991
  <line num="319" type="stmt" count="1"/>
67992
- <line num="329" type="method" name="test_restore_cli" visibility="public" complexity="2" crap="2" count="1"/>
67993
- <line num="330" type="stmt" count="1"/>
67994
- <line num="332" type="stmt" count="1"/>
67995
- <line num="333" type="stmt" count="1"/>
67996
- <line num="334" type="stmt" count="1"/>
67997
- <line num="336" type="stmt" count="1"/>
 
67998
  <line num="339" type="stmt" count="1"/>
67999
- <line num="340" type="stmt" count="1"/>
68000
  <line num="341" type="stmt" count="1"/>
68001
  <line num="344" type="stmt" count="1"/>
 
68002
  <line num="346" type="stmt" count="1"/>
68003
- <line num="347" type="stmt" count="1"/>
68004
- <metrics loc="348" ncloc="171" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="114" coveredstatements="114" elements="123" coveredelements="123"/>
 
 
68005
  </file>
68006
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
68007
  <class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
@@ -73283,7 +73321,7 @@
73283
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
73284
  </file>
73285
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
73286
- <class name="ComposerStaticInit6df192d9853bdd4228855a4ad06079b1" namespace="Composer\Autoload">
73287
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
73288
  </class>
73289
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -73375,7 +73413,7 @@
73375
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
73376
  </file>
73377
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
73378
- <class name="ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1" namespace="global">
73379
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
73380
  </class>
73381
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -92518,6 +92556,6 @@
92518
  <line num="16" type="stmt" count="0"/>
92519
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
92520
  </file>
92521
- <metrics files="916" loc="184644" ncloc="112902" classes="827" methods="3355" coveredmethods="176" conditionals="0" coveredconditionals="0" statements="83523" coveredstatements="2986" elements="86878" coveredelements="3162"/>
92522
  </project>
92523
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1579204967">
3
+ <project timestamp="1579204967">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
6
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
2917
  <line num="1903" type="stmt" count="4"/>
2918
  <line num="1904" type="stmt" count="0"/>
2919
  <line num="1906" type="stmt" count="4"/>
2920
+ <line num="1907" type="stmt" count="3"/>
2921
  <line num="1910" type="stmt" count="4"/>
2922
  <line num="1911" type="stmt" count="3"/>
2923
  <line num="1914" type="stmt" count="4"/>
5060
  </file>
5061
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-log.php">
5062
  <class name="Boldgrid_Backup_Admin_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5063
+ <metrics complexity="15" methods="8" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="44" elements="71" coveredelements="49"/>
5064
  </class>
5065
  <line num="55" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="17"/>
5066
  <line num="56" type="stmt" count="17"/>
5071
  <line num="77" type="stmt" count="3"/>
5072
  <line num="78" type="stmt" count="3"/>
5073
  <line num="79" type="stmt" count="3"/>
5074
+ <line num="86" type="method" name="add_generic" visibility="public" complexity="1" crap="1" count="3"/>
5075
  <line num="87" type="stmt" count="3"/>
 
5076
  <line num="89" type="stmt" count="3"/>
5077
  <line num="91" type="stmt" count="3"/>
5078
  <line num="92" type="stmt" count="3"/>
5079
+ <line num="99" type="method" name="add_memory" visibility="public" complexity="1" crap="1" count="3"/>
 
 
 
 
 
5080
  <line num="100" type="stmt" count="3"/>
5081
  <line num="101" type="stmt" count="3"/>
5082
+ <line num="102" type="stmt" count="3"/>
5083
+ <line num="104" type="stmt" count="3"/>
5084
+ <line num="105" type="stmt" count="3"/>
5085
+ <line num="106" type="stmt" count="3"/>
5086
+ <line num="107" type="stmt" count="3"/>
5087
+ <line num="108" type="stmt" count="3"/>
5088
+ <line num="109" type="stmt" count="3"/>
5089
  <line num="110" type="stmt" count="3"/>
5090
  <line num="111" type="stmt" count="3"/>
5091
  <line num="113" type="stmt" count="3"/>
5092
+ <line num="114" type="stmt" count="3"/>
5093
+ <line num="121" type="method" name="clean_up" visibility="public" complexity="4" crap="4.25" count="3"/>
5094
+ <line num="123" type="stmt" count="3"/>
5095
+ <line num="124" type="stmt" count="3"/>
5096
+ <line num="126" type="stmt" count="3"/>
5097
+ <line num="128" type="stmt" count="2"/>
5098
+ <line num="129" type="stmt" count="0"/>
5099
+ <line num="133" type="stmt" count="2"/>
5100
+ <line num="134" type="stmt" count="2"/>
5101
+ <line num="135" type="stmt" count="2"/>
5102
+ <line num="138" type="stmt" count="0"/>
5103
+ <line num="140" type="stmt" count="0"/>
5104
  <line num="141" type="stmt" count="3"/>
5105
+ <line num="142" type="stmt" count="3"/>
5106
+ <line num="152" type="method" name="init" visibility="public" complexity="2" crap="2" count="3"/>
5107
+ <line num="154" type="stmt" count="3"/>
5108
+ <line num="156" type="stmt" count="3"/>
5109
+ <line num="158" type="stmt" count="3"/>
5110
+ <line num="160" type="stmt" count="3"/>
5111
+ <line num="162" type="stmt" count="3"/>
5112
+ <line num="164" type="stmt" count="3"/>
5113
+ <line num="165" type="stmt" count="3"/>
5114
+ <line num="166" type="stmt" count="3"/>
5115
+ <line num="168" type="stmt" count="3"/>
5116
+ <line num="178" type="method" name="init_signal_handler" visibility="private" complexity="4" crap="14.72" count="3"/>
5117
+ <line num="187" type="stmt" count="3"/>
5118
+ <line num="188" type="stmt" count="3"/>
5119
+ <line num="191" type="stmt" count="0"/>
5120
+ <line num="192" type="stmt" count="0"/>
5121
+ <line num="193" type="stmt" count="0"/>
5122
+ <line num="197" type="stmt" count="0"/>
5123
+ <line num="201" type="stmt" count="0"/>
5124
+ <line num="203" type="stmt" count="0"/>
5125
+ <line num="205" type="stmt" count="0"/>
5126
+ <line num="207" type="stmt" count="0"/>
5127
+ <line num="213" type="stmt" count="0"/>
5128
+ <line num="214" type="stmt" count="0"/>
5129
+ <line num="216" type="stmt" count="0"/>
5130
+ <line num="217" type="stmt" count="0"/>
5131
+ <line num="218" type="stmt" count="0"/>
5132
+ <line num="219" type="stmt" count="0"/>
5133
+ <line num="228" type="method" name="signal_handler" visibility="public" complexity="1" crap="2" count="0"/>
5134
+ <line num="229" type="stmt" count="0"/>
5135
+ <line num="231" type="stmt" count="0"/>
5136
+ <metrics loc="233" ncloc="105" classes="1" methods="8" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="63" coveredstatements="44" elements="71" coveredelements="49"/>
5137
  </file>
5138
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-notice.php">
5139
  <class name="Boldgrid_Backup_Admin_Notice" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7654
  </file>
7655
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/compressor/class-boldgrid-backup-admin-compressor-php-zip.php">
7656
  <class name="Boldgrid_Backup_Admin_Compressor_Php_Zip" namespace="global" fullPackage="Boldgrid.Backup.Admin.Compressor.Php">
7657
+ <metrics complexity="29" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="128" coveredstatements="107" elements="132" coveredelements="109"/>
7658
  </class>
7659
  <line num="69" type="method" name="add_dir" visibility="public" complexity="4" crap="4" count="3"/>
7660
  <line num="70" type="stmt" count="3"/>
7670
  <line num="83" type="stmt" count="3"/>
7671
  <line num="84" type="stmt" count="3"/>
7672
  <line num="85" type="stmt" count="3"/>
7673
+ <line num="113" type="method" name="archive_files" visibility="public" complexity="19" crap="20.67" count="3"/>
7674
  <line num="114" type="stmt" count="3"/>
7675
  <line num="117" type="stmt" count="3"/>
7676
  <line num="118" type="stmt" count="3"/>
7746
  <line num="253" type="stmt" count="0"/>
7747
  <line num="254" type="stmt" count="3"/>
7748
  <line num="256" type="stmt" count="3"/>
7749
+ <line num="257" type="stmt" count="3"/>
7750
+ <line num="259" type="stmt" count="3"/>
7751
+ <line num="261" type="stmt" count="3"/>
7752
+ <line num="262" type="stmt" count="3"/>
7753
+ <line num="264" type="stmt" count="3"/>
7754
  <line num="266" type="stmt" count="3"/>
7755
+ <line num="268" type="stmt" count="0"/>
7756
+ <line num="269" type="stmt" count="0"/>
7757
+ <line num="272" type="stmt" count="3"/>
7758
+ <line num="280" type="method" name="is_available" visibility="public" complexity="2" crap="2" count="18"/>
7759
+ <line num="281" type="stmt" count="18"/>
7760
+ <line num="291" type="method" name="test" visibility="public" complexity="4" crap="4.20" count="1"/>
7761
  <line num="292" type="stmt" count="1"/>
7762
+ <line num="293" type="stmt" count="0"/>
7763
  <line num="296" type="stmt" count="1"/>
7764
+ <line num="298" type="stmt" count="1"/>
7765
+ <line num="300" type="stmt" count="1"/>
7766
  <line num="302" type="stmt" count="1"/>
 
 
7767
  <line num="305" type="stmt" count="1"/>
7768
+ <line num="308" type="stmt" count="1"/>
 
7769
  <line num="309" type="stmt" count="1"/>
7770
  <line num="310" type="stmt" count="1"/>
7771
+ <line num="311" type="stmt" count="1"/>
7772
  <line num="312" type="stmt" count="1"/>
7773
+ <line num="313" type="stmt" count="1"/>
7774
+ <line num="315" type="stmt" count="1"/>
7775
+ <line num="316" type="stmt" count="1"/>
7776
+ <line num="318" type="stmt" count="1"/>
7777
+ <line num="319" type="stmt" count="0"/>
7778
+ <line num="320" type="stmt" count="0"/>
7779
+ <line num="322" type="stmt" count="0"/>
7780
+ <line num="325" type="stmt" count="1"/>
7781
  <line num="326" type="stmt" count="1"/>
7782
  <line num="328" type="stmt" count="1"/>
7783
+ <line num="330" type="stmt" count="1"/>
7784
+ <line num="332" type="stmt" count="1"/>
7785
+ <line num="334" type="stmt" count="1"/>
7786
+ <line num="335" type="stmt" count="0"/>
7787
+ <line num="336" type="stmt" count="0"/>
7788
+ <line num="338" type="stmt" count="0"/>
7789
+ <line num="341" type="stmt" count="1"/>
7790
+ <line num="343" type="stmt" count="1"/>
7791
+ <metrics loc="345" ncloc="196" classes="1" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="128" coveredstatements="107" elements="132" coveredelements="109"/>
7792
  </file>
7793
  <package name="Boldgrid\Backup\Admin\Cron">
7794
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/cron/class-crontab.php">
67910
  </file>
67911
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-core.php">
67912
  <class name="Test_Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
67913
+ <metrics complexity="23" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="118" elements="127" coveredelements="127"/>
67914
  </class>
67915
  <line num="41" type="method" name="assertDirNotEmpty" visibility="public" complexity="5" crap="5" count="1"/>
67916
  <line num="42" type="stmt" count="1"/>
67988
  <line num="224" type="stmt" count="2"/>
67989
  <line num="225" type="stmt" count="2"/>
67990
  <line num="227" type="stmt" count="2"/>
67991
+ <line num="235" type="method" name="setUp" visibility="public" complexity="2" crap="2" count="3"/>
67992
  <line num="236" type="stmt" count="3"/>
67993
  <line num="238" type="stmt" count="3"/>
67994
+ <line num="239" type="stmt" count="1"/>
67995
+ <line num="240" type="stmt" count="1"/>
67996
+ <line num="241" type="stmt" count="1"/>
67997
  <line num="243" type="stmt" count="3"/>
67998
+ <line num="245" type="stmt" count="3"/>
67999
+ <line num="247" type="stmt" count="3"/>
68000
+ <line num="248" type="stmt" count="3"/>
68001
+ <line num="255" type="method" name="test_archive_files" visibility="public" complexity="1" crap="1" count="1"/>
68002
+ <line num="256" type="stmt" count="1"/>
68003
+ <line num="259" type="stmt" count="1"/>
68004
+ <line num="260" type="stmt" count="1"/>
 
68005
  <line num="273" type="stmt" count="1"/>
68006
+ <line num="274" type="stmt" count="1"/>
68007
+ <line num="275" type="stmt" count="1"/>
68008
  <line num="276" type="stmt" count="1"/>
68009
+ <line num="278" type="stmt" count="1"/>
68010
+ <line num="281" type="stmt" count="1"/>
 
68011
  <line num="284" type="stmt" count="1"/>
68012
+ <line num="287" type="stmt" count="1"/>
68013
  <line num="288" type="stmt" count="1"/>
68014
  <line num="289" type="stmt" count="1"/>
68015
  <line num="290" type="stmt" count="1"/>
68016
+ <line num="293" type="stmt" count="1"/>
68017
+ <line num="294" type="stmt" count="1"/>
68018
+ <line num="295" type="stmt" count="1"/>
68019
+ <line num="302" type="method" name="test_restore_archive_file" visibility="public" complexity="2" crap="2" count="1"/>
68020
+ <line num="310" type="stmt" count="1"/>
68021
+ <line num="311" type="stmt" count="1"/>
68022
  <line num="312" type="stmt" count="1"/>
 
68023
  <line num="314" type="stmt" count="1"/>
68024
+ <line num="317" type="stmt" count="1"/>
68025
  <line num="318" type="stmt" count="1"/>
68026
  <line num="319" type="stmt" count="1"/>
68027
+ <line num="321" type="stmt" count="1"/>
68028
+ <line num="323" type="stmt" count="1"/>
68029
+ <line num="324" type="stmt" count="1"/>
68030
+ <line num="334" type="method" name="test_restore_cli" visibility="public" complexity="2" crap="2" count="1"/>
68031
+ <line num="335" type="stmt" count="1"/>
68032
+ <line num="337" type="stmt" count="1"/>
68033
+ <line num="338" type="stmt" count="1"/>
68034
  <line num="339" type="stmt" count="1"/>
 
68035
  <line num="341" type="stmt" count="1"/>
68036
  <line num="344" type="stmt" count="1"/>
68037
+ <line num="345" type="stmt" count="1"/>
68038
  <line num="346" type="stmt" count="1"/>
68039
+ <line num="349" type="stmt" count="1"/>
68040
+ <line num="351" type="stmt" count="1"/>
68041
+ <line num="352" type="stmt" count="1"/>
68042
+ <metrics loc="353" ncloc="176" classes="1" methods="9" coveredmethods="9" conditionals="0" coveredconditionals="0" statements="118" coveredstatements="118" elements="127" coveredelements="127"/>
68043
  </file>
68044
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-cron.php">
68045
  <class name="Test_Boldgrid_Backup_Admin_Cron" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin">
73321
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
73322
  </file>
73323
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
73324
+ <class name="ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a" namespace="Composer\Autoload">
73325
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
73326
  </class>
73327
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
73413
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
73414
  </file>
73415
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
73416
+ <class name="ComposerAutoloaderInite4558c5fbbaa41b08a105a439cf48f6a" namespace="global">
73417
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
73418
  </class>
73419
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
92556
  <line num="16" type="stmt" count="0"/>
92557
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
92558
  </file>
92559
+ <metrics files="916" loc="184738" ncloc="112956" classes="827" methods="3358" coveredmethods="177" conditionals="0" coveredconditionals="0" statements="83558" coveredstatements="3005" elements="86916" coveredelements="3182"/>
92560
  </project>
92561
  </coverage>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, cloud backup, database backup, restore, wordpress backup
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
- Stable tag: 1.12.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,14 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
 
 
135
  = 1.12.5 =
136
 
137
  Release date: January 14th, 2020
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 1.12.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.12.6 =
136
+
137
+ Release date: January 16th, 2020
138
+
139
+ * Update: Open logs full screen.
140
+ * Update: Added additional info to the logs.
141
+ * Update: Logs now listen for signals, can log when a script is killed.
142
+
143
  = 1.12.5 =
144
 
145
  Release date: January 14th, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite4558c5fbbaa41b08a105a439cf48f6a::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit6df192d9853bdd4228855a4ad06079b1::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit6df192d9853bdd4228855a4ad06079b1
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit6df192d9853bdd4228855a4ad06079b1::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire6df192d9853bdd4228855a4ad06079b1($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire6df192d9853bdd4228855a4ad06079b1($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInite4558c5fbbaa41b08a105a439cf48f6a
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite4558c5fbbaa41b08a105a439cf48f6a', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite4558c5fbbaa41b08a105a439cf48f6a', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequiree4558c5fbbaa41b08a105a439cf48f6a($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequiree4558c5fbbaa41b08a105a439cf48f6a($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit6df192d9853bdd4228855a4ad06079b1
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit6df192d9853bdd4228855a4ad06079b1
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit6df192d9853bdd4228855a4ad06079b1::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit6df192d9853bdd4228855a4ad06079b1::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit6df192d9853bdd4228855a4ad06079b1::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInite4558c5fbbaa41b08a105a439cf48f6a::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }