Skip to content

Commit e68fdb7

Browse files
authored
Merge pull request #451 from mrrobot47/fix/skip-ssl
feat(backup): add --skip-ssl option to mysqldump command
2 parents 430f141 + bdfec0f commit e68fdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/Site_Backup_Restore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private function backup_db( $backup_dir ) {
376376

377377
$this->fs->mkdir( $backup_dir . '/sql' );
378378

379-
$backup_command = sprintf( 'mysqldump -u %s -p%s -h %s --single-transaction %s > /var/www/htdocs/%s', $db_user, $db_password, $db_host, $db_name, $sql_filename );
379+
$backup_command = sprintf( 'mysqldump --skip-ssl -u %s -p%s -h %s --single-transaction %s > /var/www/htdocs/%s', $db_user, $db_password, $db_host, $db_name, $sql_filename );
380380
$args = [ 'shell', $this->site_data['site_url'] ];
381381
$assoc_args = [ 'command' => $backup_command ];
382382
$options = [ 'skip-tty' => true ];

0 commit comments

Comments
 (0)