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

Version Description

Release date: April 2nd, 2020

  • Bug fix: Database backups not working when using port other than 3306 (the Robert bug).
Download this release

Release Info

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

Code changes from version 1.13.2 to 1.13.3

admin/class-boldgrid-backup-admin-db-dump.php CHANGED
@@ -81,12 +81,9 @@ class Boldgrid_Backup_Admin_Db_Dump {
81
  */
82
  do_action( 'boldgrid_backup_pre_dump', $file );
83
 
84
- // Some hosts may configure the DB_HOST as localhost:3306. Strip out the port.
85
- $db_host = explode( ':', DB_HOST );
86
-
87
  try {
88
  $dump = new IMysqldump\Mysqldump(
89
- sprintf( 'mysql:host=%1$s;dbname=%2$s', $db_host[0], DB_NAME ),
90
  DB_USER,
91
  DB_PASSWORD,
92
  array(
@@ -111,6 +108,71 @@ class Boldgrid_Backup_Admin_Db_Dump {
111
  return true;
112
  }
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  /**
115
  * Get data on all tables and the number of records in the backup file.
116
  *
81
  */
82
  do_action( 'boldgrid_backup_pre_dump', $file );
83
 
 
 
 
84
  try {
85
  $dump = new IMysqldump\Mysqldump(
86
+ $this->get_connection_string(),
87
  DB_USER,
88
  DB_PASSWORD,
89
  array(
108
  return true;
109
  }
110
 
111
+ /**
112
+ * Get our PDO DSN connection string.
113
+ *
114
+ * @since 1.13.3
115
+ *
116
+ * @param string $db_host DB hostname.
117
+ * @param string $db_name DB name.
118
+ * @return string
119
+ */
120
+ public function get_connection_string( $db_host = null, $db_name = null ) {
121
+ $params = array();
122
+
123
+ // Configure parameters passed in.
124
+ $db_name = empty( $db_name ) ? DB_NAME : $db_name;
125
+ $db_host = empty( $db_host ) ? DB_HOST : $db_host;
126
+ $db_host = explode( ':', $db_host );
127
+
128
+ // Parse info and get hostname, port, and socket. Not all required. See comments below.
129
+ switch ( count( $db_host ) ) {
130
+ /*
131
+ * Examples:
132
+ *
133
+ * # localhost
134
+ * # /var/lib/mysql/mysql.sock
135
+ */
136
+ case 1:
137
+ $has_socket = 'sock' === pathinfo( $db_host[0], PATHINFO_EXTENSION );
138
+
139
+ if ( $has_socket ) {
140
+ $params['unix_socket'] = $db_host[0];
141
+ } else {
142
+ $params['host'] = $db_host[0];
143
+ }
144
+
145
+ break;
146
+ /*
147
+ * Examples:
148
+ *
149
+ * # localhost:/var/lib/mysql/mysql.sock
150
+ * # localhost:3306
151
+ */
152
+ case 2:
153
+ $has_socket = 'sock' === pathinfo( $db_host[1], PATHINFO_EXTENSION );
154
+ $has_port = is_numeric( $db_host[1] );
155
+
156
+ $params['host'] = $db_host[0];
157
+
158
+ if ( $has_socket ) {
159
+ $params['unix_socket'] = $db_host[1];
160
+ } elseif ( $has_port ) {
161
+ $params['port'] = $db_host[1];
162
+ }
163
+
164
+ break;
165
+ }
166
+
167
+ $connection_string = 'mysql:';
168
+ foreach ( $params as $key => $value ) {
169
+ $connection_string .= $key . '=' . $value . ';';
170
+ }
171
+ $connection_string .= 'dbname=' . $db_name;
172
+
173
+ return $connection_string;
174
+ }
175
+
176
  /**
177
  * Get data on all tables and the number of records in the backup file.
178
  *
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.13.2
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.13.3
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="1582294345">
3
- <project timestamp="1582294345">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
@@ -2608,8 +2608,8 @@
2608
  <line num="754" type="stmt" count="1"/>
2609
  <line num="756" type="stmt" count="1"/>
2610
  <line num="758" type="stmt" count="1"/>
2611
- <line num="770" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="17"/>
2612
- <line num="771" type="stmt" count="17"/>
2613
  <line num="781" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
2614
  <line num="782" type="stmt" count="0"/>
2615
  <line num="784" type="stmt" count="0"/>
@@ -4317,7 +4317,7 @@
4317
  </file>
4318
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
4319
  <class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4320
- <metrics complexity="13" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="67" coveredstatements="26" elements="71" coveredelements="27"/>
4321
  </class>
4322
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4323
  <line num="40" type="stmt" count="20"/>
@@ -4335,62 +4335,91 @@
4335
  <line num="75" type="stmt" count="4"/>
4336
  <line num="82" type="stmt" count="4"/>
4337
  <line num="85" type="stmt" count="4"/>
 
 
4338
  <line num="88" type="stmt" count="4"/>
4339
- <line num="89" type="stmt" count="4"/>
4340
  <line num="90" type="stmt" count="4"/>
4341
  <line num="91" type="stmt" count="4"/>
 
4342
  <line num="93" type="stmt" count="4"/>
4343
- <line num="94" type="stmt" count="4"/>
4344
  <line num="95" type="stmt" count="4"/>
4345
  <line num="96" type="stmt" count="4"/>
4346
- <line num="98" type="stmt" count="4"/>
4347
- <line num="99" type="stmt" count="4"/>
4348
- <line num="100" type="stmt" count="4"/>
4349
- <line num="101" type="stmt" count="0"/>
4350
- <line num="109" type="stmt" count="4"/>
4351
- <line num="111" type="stmt" count="4"/>
4352
- <line num="123" type="method" name="get_insert_count" visibility="public" complexity="7" crap="56" count="0"/>
4353
- <line num="124" type="stmt" count="0"/>
4354
- <line num="125" type="stmt" count="0"/>
4355
- <line num="127" type="stmt" count="0"/>
4356
- <line num="129" type="stmt" count="0"/>
4357
- <line num="132" type="stmt" count="0"/>
4358
- <line num="133" type="stmt" count="0"/>
4359
- <line num="134" type="stmt" count="0"/>
4360
- <line num="136" type="stmt" count="0"/>
4361
- <line num="139" type="stmt" count="0"/>
4362
- <line num="146" type="stmt" count="0"/>
4363
- <line num="147" type="stmt" count="0"/>
4364
- <line num="149" type="stmt" count="0"/>
4365
- <line num="150" type="stmt" count="0"/>
4366
- <line num="151" type="stmt" count="0"/>
4367
- <line num="154" type="stmt" count="0"/>
4368
- <line num="156" type="stmt" count="0"/>
4369
- <line num="171" type="stmt" count="0"/>
4370
- <line num="172" type="stmt" count="0"/>
4371
- <line num="173" type="stmt" count="0"/>
4372
- <line num="175" type="stmt" count="0"/>
4373
- <line num="176" type="stmt" count="0"/>
4374
- <line num="177" type="stmt" count="0"/>
4375
- <line num="178" type="stmt" count="0"/>
4376
- <line num="179" type="stmt" count="0"/>
4377
- <line num="181" type="stmt" count="0"/>
4378
- <line num="182" type="stmt" count="0"/>
4379
- <line num="184" type="stmt" count="0"/>
4380
- <line num="185" type="stmt" count="0"/>
 
4381
  <line num="187" type="stmt" count="0"/>
4382
- <line num="199" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
4383
- <line num="200" type="stmt" count="0"/>
 
 
 
 
4384
  <line num="201" type="stmt" count="0"/>
 
 
 
 
 
4385
  <line num="216" type="stmt" count="0"/>
4386
- <line num="217" type="stmt" count="0"/>
4387
  <line num="218" type="stmt" count="0"/>
4388
- <line num="219" type="stmt" count="0"/>
4389
- <line num="220" type="stmt" count="0"/>
4390
- <line num="221" type="stmt" count="0"/>
4391
- <line num="224" type="stmt" count="0"/>
4392
- <line num="226" type="stmt" count="0"/>
4393
- <metrics loc="228" ncloc="109" classes="1" methods="4" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="67" coveredstatements="26" elements="71" coveredelements="27"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4394
  </file>
4395
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
4396
  <class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
@@ -68924,6 +68953,31 @@
68924
  <line num="87" type="stmt" count="1"/>
68925
  <metrics loc="88" ncloc="47" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
68926
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68927
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-get.php">
68928
  <class name="Test_Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
68929
  <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
@@ -74867,7 +74921,7 @@
74867
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
74868
  </file>
74869
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
74870
- <class name="ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5" namespace="Composer\Autoload">
74871
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
74872
  </class>
74873
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -74959,7 +75013,7 @@
74959
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
74960
  </file>
74961
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
74962
- <class name="ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5" namespace="global">
74963
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
74964
  </class>
74965
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -74968,50 +75022,50 @@
74968
  <line num="12" type="stmt" count="0"/>
74969
  <line num="13" type="stmt" count="0"/>
74970
  <line num="14" type="stmt" count="0"/>
74971
- <line num="16" type="method" name="getLoader" visibility="public" complexity="11" crap="132" count="0"/>
74972
- <line num="17" type="stmt" count="0"/>
74973
- <line num="18" type="stmt" count="0"/>
74974
- <line num="19" type="stmt" count="0"/>
74975
  <line num="20" type="stmt" count="0"/>
 
74976
  <line num="22" type="stmt" count="0"/>
74977
  <line num="23" type="stmt" count="0"/>
74978
- <line num="24" type="stmt" count="0"/>
74979
  <line num="26" type="stmt" count="0"/>
74980
  <line num="27" type="stmt" count="0"/>
74981
- <line num="28" type="stmt" count="0"/>
74982
  <line num="30" type="stmt" count="0"/>
74983
  <line num="31" type="stmt" count="0"/>
74984
- <line num="32" type="stmt" count="0"/>
74985
  <line num="33" type="stmt" count="0"/>
74986
  <line num="34" type="stmt" count="0"/>
74987
  <line num="35" type="stmt" count="0"/>
 
74988
  <line num="37" type="stmt" count="0"/>
74989
  <line num="38" type="stmt" count="0"/>
74990
- <line num="39" type="stmt" count="0"/>
74991
  <line num="40" type="stmt" count="0"/>
 
74992
  <line num="42" type="stmt" count="0"/>
74993
  <line num="43" type="stmt" count="0"/>
74994
- <line num="44" type="stmt" count="0"/>
74995
  <line num="45" type="stmt" count="0"/>
74996
  <line num="46" type="stmt" count="0"/>
 
74997
  <line num="48" type="stmt" count="0"/>
74998
- <line num="50" type="stmt" count="0"/>
74999
  <line num="51" type="stmt" count="0"/>
75000
- <line num="52" type="stmt" count="0"/>
75001
  <line num="53" type="stmt" count="0"/>
75002
  <line num="54" type="stmt" count="0"/>
75003
  <line num="55" type="stmt" count="0"/>
75004
  <line num="56" type="stmt" count="0"/>
75005
  <line num="57" type="stmt" count="0"/>
 
75006
  <line num="59" type="stmt" count="0"/>
75007
  <line num="60" type="stmt" count="0"/>
75008
- <line num="64" type="stmt" count="0"/>
75009
- <line num="65" type="stmt" count="0"/>
75010
- <line num="66" type="stmt" count="0"/>
75011
  <line num="68" type="stmt" count="0"/>
75012
  <line num="69" type="stmt" count="0"/>
75013
- <line num="70" type="stmt" count="0"/>
75014
- <metrics loc="70" ncloc="68" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="0" elements="49" coveredelements="0"/>
 
 
75015
  </file>
75016
  <package name="Ifsnop\Mysqldump">
75017
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/ifsnop/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php">
@@ -94102,6 +94156,6 @@
94102
  <line num="16" type="stmt" count="0"/>
94103
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
94104
  </file>
94105
- <metrics files="941" loc="188514" ncloc="115008" classes="851" methods="3494" coveredmethods="265" conditionals="0" coveredconditionals="0" statements="84821" coveredstatements="3845" elements="88315" coveredelements="4110"/>
94106
  </project>
94107
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1585853169">
3
+ <project timestamp="1585853169">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
2608
  <line num="754" type="stmt" count="1"/>
2609
  <line num="756" type="stmt" count="1"/>
2610
  <line num="758" type="stmt" count="1"/>
2611
+ <line num="770" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="18"/>
2612
+ <line num="771" type="stmt" count="18"/>
2613
  <line num="781" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
2614
  <line num="782" type="stmt" count="0"/>
2615
  <line num="784" type="stmt" count="0"/>
4317
  </file>
4318
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php">
4319
  <class name="Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
4320
+ <metrics complexity="22" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="54" elements="100" coveredelements="56"/>
4321
  </class>
4322
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
4323
  <line num="40" type="stmt" count="20"/>
4335
  <line num="75" type="stmt" count="4"/>
4336
  <line num="82" type="stmt" count="4"/>
4337
  <line num="85" type="stmt" count="4"/>
4338
+ <line num="86" type="stmt" count="4"/>
4339
+ <line num="87" type="stmt" count="4"/>
4340
  <line num="88" type="stmt" count="4"/>
 
4341
  <line num="90" type="stmt" count="4"/>
4342
  <line num="91" type="stmt" count="4"/>
4343
+ <line num="92" type="stmt" count="4"/>
4344
  <line num="93" type="stmt" count="4"/>
 
4345
  <line num="95" type="stmt" count="4"/>
4346
  <line num="96" type="stmt" count="4"/>
4347
+ <line num="97" type="stmt" count="4"/>
4348
+ <line num="98" type="stmt" count="0"/>
4349
+ <line num="106" type="stmt" count="4"/>
4350
+ <line num="108" type="stmt" count="4"/>
4351
+ <line num="120" type="method" name="get_connection_string" visibility="public" complexity="9" crap="9" count="5"/>
4352
+ <line num="121" type="stmt" count="5"/>
4353
+ <line num="124" type="stmt" count="5"/>
4354
+ <line num="125" type="stmt" count="5"/>
4355
+ <line num="126" type="stmt" count="5"/>
4356
+ <line num="129" type="stmt" count="5"/>
4357
+ <line num="136" type="stmt" count="5"/>
4358
+ <line num="137" type="stmt" count="5"/>
4359
+ <line num="139" type="stmt" count="5"/>
4360
+ <line num="140" type="stmt" count="1"/>
4361
+ <line num="141" type="stmt" count="1"/>
4362
+ <line num="142" type="stmt" count="5"/>
4363
+ <line num="145" type="stmt" count="5"/>
4364
+ <line num="152" type="stmt" count="1"/>
4365
+ <line num="153" type="stmt" count="1"/>
4366
+ <line num="154" type="stmt" count="1"/>
4367
+ <line num="156" type="stmt" count="1"/>
4368
+ <line num="158" type="stmt" count="1"/>
4369
+ <line num="159" type="stmt" count="1"/>
4370
+ <line num="160" type="stmt" count="1"/>
4371
+ <line num="161" type="stmt" count="1"/>
4372
+ <line num="162" type="stmt" count="1"/>
4373
+ <line num="164" type="stmt" count="1"/>
4374
+ <line num="165" type="stmt" count="5"/>
4375
+ <line num="167" type="stmt" count="5"/>
4376
+ <line num="168" type="stmt" count="5"/>
4377
+ <line num="169" type="stmt" count="5"/>
4378
+ <line num="170" type="stmt" count="5"/>
4379
+ <line num="171" type="stmt" count="5"/>
4380
+ <line num="173" type="stmt" count="5"/>
4381
+ <line num="185" type="method" name="get_insert_count" visibility="public" complexity="7" crap="56" count="0"/>
4382
+ <line num="186" type="stmt" count="0"/>
4383
  <line num="187" type="stmt" count="0"/>
4384
+ <line num="189" type="stmt" count="0"/>
4385
+ <line num="191" type="stmt" count="0"/>
4386
+ <line num="194" type="stmt" count="0"/>
4387
+ <line num="195" type="stmt" count="0"/>
4388
+ <line num="196" type="stmt" count="0"/>
4389
+ <line num="198" type="stmt" count="0"/>
4390
  <line num="201" type="stmt" count="0"/>
4391
+ <line num="208" type="stmt" count="0"/>
4392
+ <line num="209" type="stmt" count="0"/>
4393
+ <line num="211" type="stmt" count="0"/>
4394
+ <line num="212" type="stmt" count="0"/>
4395
+ <line num="213" type="stmt" count="0"/>
4396
  <line num="216" type="stmt" count="0"/>
 
4397
  <line num="218" type="stmt" count="0"/>
4398
+ <line num="233" type="stmt" count="0"/>
4399
+ <line num="234" type="stmt" count="0"/>
4400
+ <line num="235" type="stmt" count="0"/>
4401
+ <line num="237" type="stmt" count="0"/>
4402
+ <line num="238" type="stmt" count="0"/>
4403
+ <line num="239" type="stmt" count="0"/>
4404
+ <line num="240" type="stmt" count="0"/>
4405
+ <line num="241" type="stmt" count="0"/>
4406
+ <line num="243" type="stmt" count="0"/>
4407
+ <line num="244" type="stmt" count="0"/>
4408
+ <line num="246" type="stmt" count="0"/>
4409
+ <line num="247" type="stmt" count="0"/>
4410
+ <line num="249" type="stmt" count="0"/>
4411
+ <line num="261" type="method" name="get_insert_tables" visibility="public" complexity="2" crap="6" count="0"/>
4412
+ <line num="262" type="stmt" count="0"/>
4413
+ <line num="263" type="stmt" count="0"/>
4414
+ <line num="278" type="stmt" count="0"/>
4415
+ <line num="279" type="stmt" count="0"/>
4416
+ <line num="280" type="stmt" count="0"/>
4417
+ <line num="281" type="stmt" count="0"/>
4418
+ <line num="282" type="stmt" count="0"/>
4419
+ <line num="283" type="stmt" count="0"/>
4420
+ <line num="286" type="stmt" count="0"/>
4421
+ <line num="288" type="stmt" count="0"/>
4422
+ <metrics loc="290" ncloc="148" classes="1" methods="5" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="95" coveredstatements="54" elements="100" coveredelements="56"/>
4423
  </file>
4424
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-db-get.php">
4425
  <class name="Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Boldgrid.Backup.Admin.Db">
68953
  <line num="87" type="stmt" count="1"/>
68954
  <metrics loc="88" ncloc="47" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="37" coveredstatements="28" elements="39" coveredelements="29"/>
68955
  </file>
68956
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-dump.php">
68957
+ <class name="Test_Boldgrid_Backup_Admin_Db_Dump" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
68958
+ <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
68959
+ </class>
68960
+ <line num="26" type="method" name="test_get_connection_string" visibility="public" complexity="1" crap="1" count="1"/>
68961
+ <line num="27" type="stmt" count="1"/>
68962
+ <line num="30" type="stmt" count="1"/>
68963
+ <line num="31" type="stmt" count="1"/>
68964
+ <line num="32" type="stmt" count="1"/>
68965
+ <line num="33" type="stmt" count="1"/>
68966
+ <line num="36" type="stmt" count="1"/>
68967
+ <line num="37" type="stmt" count="1"/>
68968
+ <line num="38" type="stmt" count="1"/>
68969
+ <line num="39" type="stmt" count="1"/>
68970
+ <line num="42" type="stmt" count="1"/>
68971
+ <line num="43" type="stmt" count="1"/>
68972
+ <line num="44" type="stmt" count="1"/>
68973
+ <line num="45" type="stmt" count="1"/>
68974
+ <line num="48" type="stmt" count="1"/>
68975
+ <line num="49" type="stmt" count="1"/>
68976
+ <line num="50" type="stmt" count="1"/>
68977
+ <line num="51" type="stmt" count="1"/>
68978
+ <line num="52" type="stmt" count="1"/>
68979
+ <metrics loc="53" ncloc="23" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="18" coveredstatements="18" elements="19" coveredelements="19"/>
68980
+ </file>
68981
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/admin/test-class-boldgrid-backup-admin-db-get.php">
68982
  <class name="Test_Boldgrid_Backup_Admin_Db_Get" namespace="global" fullPackage="Test.Boldgrid.Backup.Admin.Db">
68983
  <metrics complexity="2" methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="35" coveredstatements="35" elements="37" coveredelements="37"/>
74921
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
74922
  </file>
74923
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
74924
+ <class name="ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1" namespace="Composer\Autoload">
74925
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
74926
  </class>
74927
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
75013
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
75014
  </file>
75015
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
75016
+ <class name="ComposerAutoloaderInit7b0ea2e4b82c9524f1ab59673f8203b1" namespace="global">
75017
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
75018
  </class>
75019
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
75022
  <line num="12" type="stmt" count="0"/>
75023
  <line num="13" type="stmt" count="0"/>
75024
  <line num="14" type="stmt" count="0"/>
75025
+ <line num="19" type="method" name="getLoader" visibility="public" complexity="11" crap="132" count="0"/>
 
 
 
75026
  <line num="20" type="stmt" count="0"/>
75027
+ <line num="21" type="stmt" count="0"/>
75028
  <line num="22" type="stmt" count="0"/>
75029
  <line num="23" type="stmt" count="0"/>
75030
+ <line num="25" type="stmt" count="0"/>
75031
  <line num="26" type="stmt" count="0"/>
75032
  <line num="27" type="stmt" count="0"/>
75033
+ <line num="29" type="stmt" count="0"/>
75034
  <line num="30" type="stmt" count="0"/>
75035
  <line num="31" type="stmt" count="0"/>
 
75036
  <line num="33" type="stmt" count="0"/>
75037
  <line num="34" type="stmt" count="0"/>
75038
  <line num="35" type="stmt" count="0"/>
75039
+ <line num="36" type="stmt" count="0"/>
75040
  <line num="37" type="stmt" count="0"/>
75041
  <line num="38" type="stmt" count="0"/>
 
75042
  <line num="40" type="stmt" count="0"/>
75043
+ <line num="41" type="stmt" count="0"/>
75044
  <line num="42" type="stmt" count="0"/>
75045
  <line num="43" type="stmt" count="0"/>
 
75046
  <line num="45" type="stmt" count="0"/>
75047
  <line num="46" type="stmt" count="0"/>
75048
+ <line num="47" type="stmt" count="0"/>
75049
  <line num="48" type="stmt" count="0"/>
75050
+ <line num="49" type="stmt" count="0"/>
75051
  <line num="51" type="stmt" count="0"/>
 
75052
  <line num="53" type="stmt" count="0"/>
75053
  <line num="54" type="stmt" count="0"/>
75054
  <line num="55" type="stmt" count="0"/>
75055
  <line num="56" type="stmt" count="0"/>
75056
  <line num="57" type="stmt" count="0"/>
75057
+ <line num="58" type="stmt" count="0"/>
75058
  <line num="59" type="stmt" count="0"/>
75059
  <line num="60" type="stmt" count="0"/>
75060
+ <line num="62" type="stmt" count="0"/>
75061
+ <line num="63" type="stmt" count="0"/>
75062
+ <line num="67" type="stmt" count="0"/>
75063
  <line num="68" type="stmt" count="0"/>
75064
  <line num="69" type="stmt" count="0"/>
75065
+ <line num="71" type="stmt" count="0"/>
75066
+ <line num="72" type="stmt" count="0"/>
75067
+ <line num="73" type="stmt" count="0"/>
75068
+ <metrics loc="73" ncloc="68" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="47" coveredstatements="0" elements="49" coveredelements="0"/>
75069
  </file>
75070
  <package name="Ifsnop\Mysqldump">
75071
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/ifsnop/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php">
94156
  <line num="16" type="stmt" count="0"/>
94157
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
94158
  </file>
94159
+ <metrics files="942" loc="188632" ncloc="115070" classes="852" methods="3496" coveredmethods="267" conditionals="0" coveredconditionals="0" statements="84867" coveredstatements="3891" elements="88363" coveredelements="4158"/>
94160
  </project>
94161
  </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.4
6
  Requires PHP: 5.4
7
- Stable tag: 1.13.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,12 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
135
  = 1.13.2 =
136
 
137
  Release date: Februrary 21st, 2020
4
  Requires at least: 4.4
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
+ Stable tag: 1.13.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.13.3 =
136
+
137
+ Release date: April 2nd, 2020
138
+
139
+ * Bug fix: Database backups not working when using port other than 3306 (the Robert bug).
140
+
141
  = 1.13.2 =
142
 
143
  Release date: Februrary 21st, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit7b0ea2e4b82c9524f1ab59673f8203b1::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5
6
  {
7
  private static $loader;
8
 
@@ -13,21 +13,24 @@ class ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5
13
  }
14
  }
15
 
 
 
 
16
  public static function getLoader()
17
  {
18
  if (null !== self::$loader) {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5', '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\ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +51,19 @@ class ComposerAutoloaderInit95ae1df65348348b2f4924a2c9dc1cd5
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire95ae1df65348348b2f4924a2c9dc1cd5($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire95ae1df65348348b2f4924a2c9dc1cd5($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 ComposerAutoloaderInit7b0ea2e4b82c9524f1ab59673f8203b1
6
  {
7
  private static $loader;
8
 
13
  }
14
  }
15
 
16
+ /**
17
+ * @return \Composer\Autoload\ClassLoader
18
+ */
19
  public static function getLoader()
20
  {
21
  if (null !== self::$loader) {
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit7b0ea2e4b82c9524f1ab59673f8203b1', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit7b0ea2e4b82c9524f1ab59673f8203b1', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire7b0ea2e4b82c9524f1ab59673f8203b1($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire7b0ea2e4b82c9524f1ab59673f8203b1($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit95ae1df65348348b2f4924a2c9dc1cd5::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1
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 = ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInit7b0ea2e4b82c9524f1ab59673f8203b1::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }