From 931e2b6e00d22fbedb4f0bac40ee69e1553ea66d Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 3 Nov 2022 22:18:04 -0700 Subject: [PATCH] Make sure grafana mysql dump happens after dir is created --- services/backups/jobs/grafana.hcl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/services/backups/jobs/grafana.hcl b/services/backups/jobs/grafana.hcl index 0ca1dcc..162cf96 100644 --- a/services/backups/jobs/grafana.hcl +++ b/services/backups/jobs/grafana.hcl @@ -12,14 +12,16 @@ job "Grafana" { } } - mysql "Backup database" { - hostname = env("MYSQL_HOST") - port = env("MYSQL_PORT") - database = "grafana" - username = env("MYSQL_USER") - password = env("MYSQL_PASSWORD") - no_tablespaces = true - dump_to = "/local/grafana/dump.sql" + task "Backup database" { + mysql "Backup database" { + hostname = env("MYSQL_HOST") + port = env("MYSQL_PORT") + database = "grafana" + username = env("MYSQL_USER") + password = env("MYSQL_PASSWORD") + no_tablespaces = true + dump_to = "/local/grafana/dump.sql" + } } backup {