Add support of databases from more than one MySQL installation.
This commit is contained in:
@@ -98,12 +98,26 @@ mysql_backup=false
|
||||
## - encrypted option file instead.
|
||||
## -
|
||||
## - 1.) Create (encrypted) option file:
|
||||
## - $ mysql_config_editor set --login-path=local --socket=/var/run/mysqld/mysqld.sock --user=backup --password
|
||||
## - $ Password:
|
||||
## - $ mysql_config_editor set --login-path=local --socket=/tmp/mysql.sock --user=backup --password
|
||||
## - $ Password:
|
||||
## -
|
||||
## - Its possible to hold more than one credentials in this (encrypted) option file:
|
||||
## - $ mysql_config_editor set --login-path=local-5.6 --socket=/tmp/mysql-5.6.sock --user=backup --password
|
||||
## -
|
||||
## -
|
||||
## - 2.) Set environment variable mysql_credential_args="--login-path=local"
|
||||
## - Now, the backup script uses the encrypted option file instead of (unencrypt) password
|
||||
## - on command line.
|
||||
## -
|
||||
## - You can backup databases from different mysql installations i.e. for a (main)
|
||||
## - MySQL installation and a second one using variable 'mysql_credential_args_arr':
|
||||
## -
|
||||
## - mysql_credential_args_arr=("<Name1>:<MySQL credentials1>" ""<Name1>:<MySQL credentials2>" ...
|
||||
## -
|
||||
## - Example:
|
||||
## - mysql_credential_args_arr=("5.7:--login-path=local" "5.6:--login-path=local-5.6")
|
||||
## -
|
||||
#mysql_credential_args_arr=""
|
||||
mysql_credential_args="--login-path=local"
|
||||
mysql_user=backup
|
||||
mysql_password=backup
|
||||
|
||||
Reference in New Issue
Block a user