From b9ef67b92552395bb9ff5f68950019b3ba0d1492 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 27 Jul 2022 22:04:22 -0700 Subject: [PATCH] Working backup and restore --- backups/backup.nomad | 17 +++++++++++------ backups/jobs/consul.hcl | 16 ++-------------- backups/jobs/lldap.hcl | 16 ++-------------- backups/jobs/nextcloud.hcl | 16 ++-------------- 4 files changed, 17 insertions(+), 48 deletions(-) diff --git a/backups/backup.nomad b/backups/backup.nomad index 54eb7a8..dc52494 100644 --- a/backups/backup.nomad +++ b/backups/backup.nomad @@ -43,7 +43,7 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { volume "all-volumes" { type = "host" - read_only = true + read_only = false source = "all-volumes" } @@ -86,7 +86,7 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { volume_mount { volume = "all-volumes" destination = "/data" - read_only = true + read_only = false } config { @@ -123,14 +123,19 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { template { # Probably want to use database credentials that have access to dump all tables data = <