#!/bin/sh set -eo pipefail {% if nomad_conf.tls.http %} NOMAD_ADDR=https://localhost:{{ nomad_services.http.port }} \ NOMAD_CACERT={{ nomad_conf.tls.ca_file }} \ NOMAD_CLIENT_CERT={{ nomad_root_dir }}/tls/cli.crt \ NOMAD_CLIENT_KEY={{ nomad_root_dir }}/tls/cli.key \ {% endif %} {{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/backup/nomad.snap