Skip to content

Commit

Permalink
Merge pull request #43 from go2n/master
Browse files Browse the repository at this point in the history
Add mysqldump '--host' option for back up process.
  • Loading branch information
dicarve authored Jul 23, 2016
2 parents 2127263 + 19e98d8 commit fe12324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/modules/system/backup_proc.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
// time string to append to filename
$time2append = (date('Ymd_His'));
// execute the backup process
exec($sysconf['mysqldump'].' -B '.DB_NAME.' --no-create-db --quick --user='.DB_USERNAME.' --password='.DB_PASSWORD.' > '.$sysconf['backup_dir'].DS.'backup_'.$time2append.'.sql', $outputs, $status);
exec($sysconf['mysqldump'].' -B '.DB_NAME.' --no-create-db --quick --user='.DB_USERNAME.' --password='.DB_PASSWORD.' --host='.DB_HOST.' > '.$sysconf['backup_dir'].DS.'backup_'.$time2append.'.sql', $outputs, $status);
if ($status == COMMAND_SUCCESS || $status == 1) {
$data['user_id'] = $_SESSION['uid'];
$data['backup_time'] = date('Y-m-d H:i"s');
Expand Down

0 comments on commit fe12324

Please sign in to comment.