Missing host parameter for database dumps added
This commit is contained in:
parent
2eee4dfedf
commit
b826e8f6f8
2
mysql.cf
2
mysql.cf
|
@ -271,7 +271,7 @@ bundle agent create_mysql_backup_cron_job(cfg,file,table_name,run)
|
|||
classes:
|
||||
"create_cron" expression => strcmp("$(run)","true");
|
||||
vars:
|
||||
"table_exists_cmd" string => '$(mysql.mysql_cmd) -u$(cfg[db_user]) -p$(cfg[db_pass]) $(cfg[db_name]) -e "show tables LIKE \'$(table_name)\'" | grep -q $(table_name)';
|
||||
"table_exists_cmd" string => '$(mysql.mysql_cmd) -h$(cfg[db_host]) -u$(cfg[db_user]) -p$(cfg[db_pass]) $(cfg[db_name]) -e "show tables LIKE \'$(table_name)\'" | grep -q $(table_name)';
|
||||
"backup_cmd" string => "$(mysql.mysqldump_cmd) --complete-insert --routines --triggers --single-transaction --max_allowed_packet=512M -h$(cfg[db_host]) -u$(cfg[db_user]) -p$(cfg[db_pass]) $(cfg[db_name]) >$(file)";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue