Update to 2022-04-04 14:00

This commit is contained in:
Daniel Berteaud 2022-04-04 14:00:09 +02:00
parent 36b16b51b8
commit 3c169b625d
3 changed files with 18 additions and 0 deletions

View File

@ -21,3 +21,10 @@
notify: restart zabbix-proxy
register: zabbix_proxy_rpm
tags: zabbix
- name: Install backup hooks
template: src={{ item }}-backup.j2 dest=/etc/backup/{{ item }}.d/zabbix_proxy.sh mode=755
loop:
- pre
- post
tags: zabbix

View File

@ -0,0 +1,5 @@
#!/bin/sh
set -eo pipefail
rm -f /home/lbkp/zabbix/proxy.sql.zst

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -eo pipefail
mkdir -p /home/lbkp/zabbix/
sqlite3 /var/lib/zabbix/db/proxy.sqlite .dump | zstd -c > /home/lbkp/zabbix/proxy.sql.zst