db-datanommer: some more backups adjustments
First we need to pipe stderr into the grep to filter out the timescaledb warnings. So, |& does that. Then, there's no reason to backup the staging database. Disable that. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
034cf953db
commit
6030f92f4a
2 changed files with 1 additions and 5 deletions
|
@ -1,5 +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'
|
||||
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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue