diff --git a/services/backups/backup.nomad b/services/backups/backup.nomad index b1ae0a6..ba11aa2 100644 --- a/services/backups/backup.nomad +++ b/services/backups/backup.nomad @@ -99,14 +99,8 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { "-$${NOMAD_META_task}", "$${NOMAD_META_job_name}", %{ endif ~} - "/jobs/node-jobs.hcl", + "$${NOMAD_TASK_DIR}/node-jobs.hcl", ] - - mount { - type = "bind" - target = "/jobs" - source = "jobs" - } } vault { @@ -193,7 +187,7 @@ ${file("${module_path}/jobs/nzbget.hcl")} {{ end -}} {{ end -}} EOF - destination = "jobs/node-jobs.hcl" + destination = "local/node-jobs.hcl" } resources {