From 87671c627b4d395e78cbd38c9c9ac93edbae99e1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mar 31 2023 19:24:33 +0000 Subject: 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 --- diff --git a/roles/postgresql_server/templates/cron-backup-database b/roles/postgresql_server/templates/cron-backup-database index ce3c52d..f93a80b 100644 --- a/roles/postgresql_server/templates/cron-backup-database +++ b/roles/postgresql_server/templates/cron-backup-database @@ -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 %}