WAL-G slows down significantly when too many backups are kept. We need to periodically clean up old backups to maintain a reasonable level of performance, and also keep from wasting space with useless old backups.
14 lines
314 B
YAML
14 lines
314 B
YAML
- name: load wal-g-postgresql selinux module
|
|
command:
|
|
semodule -i /usr/local/share/selinux/wal-g-postgresql.cil
|
|
|
|
- name: restart wal-g backup timer
|
|
systemd:
|
|
name: wal-g-backup.timer
|
|
state: restarted
|
|
|
|
- name: restart wal-g delete timer
|
|
systemd:
|
|
name: wal-g-delete.timer
|
|
state: restarted
|