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 {