Skip to content
Snippets Groups Projects
Commit 399eb61c authored by Andy Yates's avatar Andy Yates
Browse files

Adding host as an option

parent cc389ea7
No related branches found
No related tags found
No related merge requests found
......@@ -486,7 +486,7 @@ sub _set_opts_from_hostname {
if !$settings;
#Setup default connection params
$o->{host} = $host;
$o->{host} = $settings->{host} || $host; # use a configured host otherwise use hostname
$o->{port} = $settings->{port};
#Set just SQL dump mode only if specified in cfg file
......@@ -747,6 +747,14 @@ form of an entry is
pattern = ^web\w+$ ; regular expression to filter DBs by
dir = /path/to/dump/dir ;
sql = 1 ; dump just the SQL for these databases
;if your host isn't the same as the server you are running the script on
[mydumpserver]
host = my-real-server ; host you want the script to connect to
port = 3306 ; port of the DB
pattern = ^web\w+$ ; regular expression to filter DBs by
dir = /path/to/dump/dir ;
sql = 1 ; dump just the SQL for these databases
As an example of one which grabs all core dbs from a-m and puts it in /dumps
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment