forked from ISTI-ansible-roles/ansible-roles
library/roles/mysql/defaults/main.yml: MySQL backup minute and hour are now customizable.
This commit is contained in:
parent
7e5a192ca2
commit
344b80ea8b
|
@ -44,4 +44,6 @@ mysql_backup_logfile: '{{ mysql_backup_logdir }}/my_backup.log'
|
|||
mysql_backup_retain_copies: 15
|
||||
mysql_backup_destdir: /var/lib/mysql-backup
|
||||
mysql_backup_exclude_list: "performance_schema"
|
||||
mysql_backup_crontab_minute: 0
|
||||
mysql_backup_crontab_hour: 2
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
0 0 * * * root /usr/local/bin/mysql-backup > /var/log/mysql-backup.log 2>&1
|
|
@ -0,0 +1 @@
|
|||
{{ mysql_backup_crontab_minute }} {{ mysql_backup_crontab_hour }} * * * root /usr/local/bin/mysql-backup > /var/log/mysql-backup.log 2>&1
|
Loading…
Reference in New Issue