• GAR1

    (@gar1)


    It looks to me that the destination database backup functionality that happens before the push (if configured to do so) doesn’t take into account the configured path to mysqldump.

    I had to change the database_backup() function in class-sitepush-core.php to get it to work.

    Replaced: $command = $this->make_remote(“mysqldump {$this->dump_options} -r {$destination}{$dest_host} -u {$db[‘user’]} -p'{$db[‘pw’]}’ {$db[‘name’]}; chmod 400 {$destination}”);

    With: $command = $this->make_remote(“{$this->options->mysqldump_path} {$this->dump_options} -r {$destination}{$dest_host} -u {$db[‘user’]} -p'{$db[‘pw’]}’ {$db[‘name’]}; chmod 400 {$destination}”);

    Please advise if there is a better fix for this. And perhaps it should be added to the plugin on next update?

    Thank you again for the great plugin.

    https://www.ads-software.com/plugins/sitepush/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘mysqldump path while backing up’ is closed to new replies.