<commit_before>### backupninja MySQL config file ###

when = {{ when|default('') }}

# hotcopy = < yes | no > (default = no)
# make a backup of the actual database binary files using mysqlhotcopy.
hotcopy = {{ 'yes' if hotcopy|default(False) else 'no' }}

# sqldump = < yes | no > (default = no)
# make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database.
#
sqldump = {{ 'yes' if sqldump|default(False) else 'no' }}

# sqldumpoptions = <options>
# (default = --lock-tables --complete-insert --add-drop-table --quick --quote-names)
# arguments to pass to mysqldump
# sqldumpoptions = --add-drop-table --quick --quote-names
sqldumpoptions = {{ sqldumpoptions|default('--lock-tables --complete-insert --add-drop-table --quick --quote-names') }}

# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
compress = {{ 'yes' if compress|default(True) else 'no' }}

# dbhost = {{ dbhost|default('localhost') }}

# backupdir = <dir> (default: /var/backups/mysql)
# where to dump the backups. hotcopy backups will be in a subdirectory
# 'hotcopy' and sqldump backups will be in a subdirectory 'sqldump'
backupdir = {{ backupdir|default('/var/backups/mysql') }}

# databases = <all | db1 db2 db3 > (default = all)
# which databases to backup. should either be the word 'all' or a
# space separated list of database names.
databases = {{ databases|join(" ")|default('all') }}

# only dump the structure for the database tables listed here, this means
# no data contained in these tables will be dumped. This is very useful
# to backup databases that have tables with large amounts of cache data that
# isn't necessary to backup, but you still need the structure to exist
# on a restore. You *must* specify the table as part of a database, such
# as "drupal.cache", where the database name is "drupal" and the table that
# you do not want to dump the data for is called "cache".
nodata = {{ nodata|join(" ")|default('') }}

{%- if salt['grains.get']('os_family') == 'Debian' %}
configfile = /etc/mysql/debian.cnf
{% endif -%}<commit_msg>Append ignores instead of just nodata for mysql action<commit_after>### backupninja MySQL config file ###

when = {{ when|default('') }}

# hotcopy = < yes | no > (default = no)
# make a backup of the actual database binary files using mysqlhotcopy.
hotcopy = {{ 'yes' if hotcopy|default(False) else 'no' }}

# sqldump = < yes | no > (default = no)
# make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database.
#
sqldump = {{ 'yes' if sqldump|default(False) else 'no' }}

# sqldumpoptions = <options>
# (default = --lock-tables --complete-insert --add-drop-table --quick --quote-names)
# arguments to pass to mysqldump
# sqldumpoptions = --add-drop-table --quick --quote-names
sqldumpoptions = {{ sqldumpoptions|default('--lock-tables --complete-insert --add-drop-table --quick --quote-names') }}

# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
compress = {{ 'yes' if compress|default(True) else 'no' }}

# dbhost = {{ dbhost|default('localhost') }}

# backupdir = <dir> (default: /var/backups/mysql)
# where to dump the backups. hotcopy backups will be in a subdirectory
# 'hotcopy' and sqldump backups will be in a subdirectory 'sqldump'
backupdir = {{ backupdir|default('/var/backups/mysql') }}

# databases = <all | db1 db2 db3 > (default = all)
# which databases to backup. should either be the word 'all' or a
# space separated list of database names.
databases = {{ databases|join(" ")|default('all') }}

# only dump the structure for the database tables listed here, this means
# no data contained in these tables will be dumped. This is very useful
# to backup databases that have tables with large amounts of cache data that
# isn't necessary to backup, but you still need the structure to exist
# on a restore. You *must* specify the table as part of a database, such
# as "drupal.cache", where the database name is "drupal" and the table that
# you do not want to dump the data for is called "cache".
nodata = {{ nodata|join(" ")|default('') }}

# Ignore tables to backup. See nodata for config means
ignores = {{ ignores|join(" ")|default('') }}

{%- if salt['grains.get']('os_family') == 'Debian' %}
configfile = /etc/mysql/debian.cnf
{% endif -%}
{'fraction_non_alphanumeric': 0.13524684270952927, 'fraction_numerical': 0.0013777267508610792, 'mean_word_length': 4.179548156956005, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6258804', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1306, 'n_words': 524}