mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
Update to 2022-04-04 14:00
This commit is contained in:
parent
36b16b51b8
commit
3c169b625d
@ -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
|
||||
|
5
roles/zabbix_proxy/templates/post-backup.j2
Normal file
5
roles/zabbix_proxy/templates/post-backup.j2
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
rm -f /home/lbkp/zabbix/proxy.sql.zst
|
6
roles/zabbix_proxy/templates/pre-backup.j2
Normal file
6
roles/zabbix_proxy/templates/pre-backup.j2
Normal 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
|
Loading…
x
Reference in New Issue
Block a user