Commit graph

7 commits

Author SHA1 Message Date
Kevin Fenzi
cf9d0af59a datanommer02: drop warnings from timescaledb on backups
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-03 09:30:11 -07:00
Kevin Fenzi
617d2d164d postgres / db-datanommer: use lock-wrapper for backups
It seems sometimes now db-datanommer is taking more than 24hours to
backup, and currently that means it starts another one while the
previous one is running. Thats no good for anyone, so lets put in a lock
wrapper to avoid that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-09-19 08:22:19 -07:00
Kevin Fenzi
abee63c966 postgresql_server: adjust backups for db-datanommer02
Currently backups are taking 17-18 hours with 4 threads.
Now that we have 16 cpus defined there, lets bump that up to 8 and see
if that lowers things much. If not we can look at moving to another
compression, but the database is very large so lots of compression is
good to save disk space.

Also filter out another output of the backup job that causes cron
emails.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-05-20 10:28:04 -07:00
Kevin Fenzi
6030f92f4a 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>
2023-04-01 11:23:01 -07:00
Kevin Fenzi
87671c627b 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>
2023-03-31 12:24:33 -07:00
Ralph Bean
5e32fe5643 Move postgres backup cron task inside a bash flavored script. 2014-01-13 16:16:27 +00:00
Ralph Bean
12b88b57a1 Cron backups for db-datanommer01. 2014-01-10 21:29:20 +00:00