mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -3,10 +3,6 @@
|
||||
databases:
|
||||
- datanommer
|
||||
datacenter: iad2
|
||||
db_backup_dir: ['/backups']
|
||||
# This is a more strict list, to be made publicly available
|
||||
dbs_to_backup:
|
||||
- datanommer2
|
||||
effective_cache_size: "12GB"
|
||||
eth0_ipv4_gw: 10.3.166.254
|
||||
eth0_ipv4_ip: 10.3.166.59
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user