From d8acd0a69714e9948ea023309c5f9ec647d1f758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 16 Apr 2022 22:59:06 +0200 Subject: [PATCH] fix db vars --- host_vars/mariadb.yaml | 7 +++++++ host_vars/postgres.yaml | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/host_vars/mariadb.yaml b/host_vars/mariadb.yaml index 60c89cf..95c1243 100644 --- a/host_vars/mariadb.yaml +++ b/host_vars/mariadb.yaml @@ -3,4 +3,11 @@ firewall: - port: "3306" proto: tcp interface: "eth0" +backup: + folder: "/var/lib/mysql/backup" + tarfolder: "backup" + host: backup.stargate.internal + internal: true + prearecommand: "time ( mysqldump --all-databases --single-transaction --quick --lock-tables=false > /var/lib/mysql/backup/mysqldump.sql" + basedir: /mnt/backupstore ... diff --git a/host_vars/postgres.yaml b/host_vars/postgres.yaml index 92dd5ab..f2de49c 100644 --- a/host_vars/postgres.yaml +++ b/host_vars/postgres.yaml @@ -1,6 +1,14 @@ --- +servicename: postgres firewall: - port: "5432" proto: tcp interface: "eth0" +backup: + folder: "/var/lib/postgresql/backup" + tarfolder: "backup" + host: backup.stargate.internal + internal: true + prearecommand: "time ( sudo -u postgres pg_dumpall > /var/lib/postgresql/backup/postgres.sql )" + basedir: /mnt/backupstore ...