job "borgmatic" { datacenters = ["homelab"] priority = 50 type = "service" meta { forcedeploy = "0" } constraint { attribute = "${node.class}" operator = "set_contains" value = "NAS" } group "borgmatic"{ vault{ policies= ["borgmatic"] } task "borgmatic" { driver = "docker" config { image = "ghcr.io/borgmatic-collective/borgmatic" volumes = [ "/exports:/exports", "local/borgmatic.d:/etc/borgmatic.d", "secret/id_rsa:/root/.ssh/id_rsa", "/exports/nomad/borgmatic:/root/.cache/borg", ] } env { } template { data= <