mysqldump error on bash script
OBSERVATION #1
It is not recognized because of a typo
You have
  if [ &quot;${database}&quot; == &quot;information_schema&quot; ] || [ &quot;${database}&quot; == &quot;performance_schema&quot; ]; then
        additional_mysqldump_params1=&quot;--single-transaction&quot;
  else
        additional_mysqldump_params=&quot;&quot;
  fi

It should be
  if [ &quot;${database}&quot; == &quot;information_schema&quot; ] || [ &quot;${database}&quot; == &quot;performance_schema&quot; ]; then
        additional_mysqldump_params=&quot;--single-transaction&quot;
  else
        additional_mysqldump_params=&quot;&quot;
  fi

Please change the additional_mysqldump_params1 to additional_mysqldump_params
OBSERVATION #2
You have
chmod 600 &quot;${backup_dir}/${database}.gz&quot; ${additional_mysqldump_params1}

It should read
chmod 600 &quot;${backup_dir}/${database}.gz&quot;

Please remove additional_mysqldump_params1 from that line of code
OBSERVATION #3
There is no need to mysqldump information_schema or performance_schema databases

The INFORMATION_SCHEMA database is made of up in-memory temporary tables. They are dynamically generated and populated on mysqld startyo.
The PERFORMANCE_SCHEMA database is for the instrumentation of measuring performance. Each individual MySQL instance is responsible for populating it with instrumentation data when it is in use.