From 87671c627b4d395e78cbd38c9c9ac93edbae99e1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 31 Mar 2023 12:24:33 -0700 Subject: [PATCH] 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 --- roles/postgresql_server/templates/cron-backup-database | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/postgresql_server/templates/cron-backup-database b/roles/postgresql_server/templates/cron-backup-database index ce3c52d7d4..f93a80b09e 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 %}