Add variables to configure automysqlbackup
Translate Readme
This commit is contained in:
parent
b229f5811f
commit
64dcfb2fbd
4 changed files with 50 additions and 24 deletions
24
templates/automysqlbackup
Normal file
24
templates/automysqlbackup
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Managed by ansible
|
||||
|
||||
DBHOST={{ automysqlbackiup_dbhost | default("localhost") }}
|
||||
DBNAMES=`mysql --defaults-file=/etc/mysql/debian.cnf --execute="SHOW DATABASES" | awk '{print $1}' | grep -v ^Database$ | grep -v ^mysql$ | grep -v ^performance_schema$ | grep -v ^information_schema$ | tr \\\r\\\n ,\ `
|
||||
BACKUPDIR="{{ automysqlbackup_backupdir | default("/var/lib/automysqlbackup") }}"
|
||||
MAILCONTENT="quiet"
|
||||
MAXATTSIZE="4000"
|
||||
MAILADDR="{{ automysqlbackup_mailaddr | default(root) }}"
|
||||
MDBNAMES="mysql $DBNAMES"
|
||||
DBEXCLUDE=""
|
||||
CREATE_DATABASE=yes
|
||||
SEPDIR=yes
|
||||
DOWEEKLY=6
|
||||
DOMONTHLY=01
|
||||
COMP=gzip
|
||||
COMPDIRECT=no
|
||||
COMMCOMP=no
|
||||
LATEST=no
|
||||
MAX_ALLOWED_PACKET=
|
||||
SOCKET=
|
||||
PREBACKUP=
|
||||
POSTBACKUP="{{ automysqlbackup_postbackup }}"
|
||||
ROUTINES=yes
|
||||
OPTIONS=""
|
Loading…
Add table
Add a link
Reference in a new issue