forked from xsbr/zabbixzone
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH Add backup rotation, credential file support
New options -r (rotating backups, keeping up to n previous files) and -c for providing a mysql configuration file with credentials to be used. Allows storing these in a protected file instead of having to provide it via script parameter (which might be logged somewhere) or requiring interactive entry. Using the --defaults-extra-file option for the mysql clients requires some working around quoting issues (hence eval). Moreover, the option needs to be the first.
- Loading branch information
1 parent
74fcf7f
commit 9d3cfcd
Showing
1 changed file
with
60 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The line 223 is not correct! In this line you are putting database name twice. So in the result script will fail with error trying to find table named as a database (zabbix in my case). The correct line should be like that: