|
|
@ -28,9 +28,11 @@ else |
|
|
|
--host={{ zabbix_server_db_server | quote }} \ |
|
|
|
--host={{ zabbix_server_db_server | quote }} \ |
|
|
|
--port={{ zabbix_server_db_port }} \ |
|
|
|
--port={{ zabbix_server_db_port }} \ |
|
|
|
--no-create-info \ |
|
|
|
--no-create-info \ |
|
|
|
|
|
|
|
{% if zabbix_server_backup_on_full_only %} |
|
|
|
{% for table in ['events', 'history', 'history_uint', 'history_str', 'history_text', 'trends', 'trends_uint'] %} |
|
|
|
{% for table in ['events', 'history', 'history_uint', 'history_str', 'history_text', 'trends', 'trends_uint'] %} |
|
|
|
--ignore-table={{ zabbix_server_db_name }}.{{ table }} \ |
|
|
|
--ignore-table={{ zabbix_server_db_name }}.{{ table }} \ |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
--quick --single-transaction \ |
|
|
|
--quick --single-transaction \ |
|
|
|
--add-locks \ |
|
|
|
--add-locks \ |
|
|
|
{{ zabbix_server_db_name | quote }} | zstd -T0 -c > /home/lbkp/zabbix/{{ zabbix_server_db_name }}_data.sql.zst |
|
|
|
{{ zabbix_server_db_name | quote }} | zstd -T0 -c > /home/lbkp/zabbix/{{ zabbix_server_db_name }}_data.sql.zst |
|
|
|