db-datanommer02: supress warnings from pg_dump

db-datanommer02 uses timescaledb. When you do a pg_dump there's warnings
due to this, but according to upstream they are all completely harmless.
So, to avoid an email to everyone every day, lets just try and supress
these, but yet hopefully not supress real errors if they every occur.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-03-31 12:24:33 -07:00
parent f5315b3ca4
commit 87671c627b

View file

@ -1 +1,5 @@
{% if inventory_hostname == 'db-datanommer02.iad2.fedoraproject.org' %}
0 0 * * * postgres /usr/local/bin/backup-database {{ item }} | grep -Ev 'warning:|hypertable|chunk|restore|data-only'
{% else %}
0 0 * * * postgres /usr/local/bin/backup-database {{ item }}
{% endif %}