mysqldump path while backing up
-
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.
- The topic ‘mysqldump path while backing up’ is closed to new replies.