Skip to content

Simple docker container for backing up/restoring nomad jobs

Notifications You must be signed in to change notification settings

bamerrell/nomadoctor

This branch is up to date with djenriquez/nomadoctor:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ac1feb · Aug 17, 2018

History

1 Commit
Aug 17, 2018
Aug 17, 2018
Aug 17, 2018
Aug 17, 2018
Aug 17, 2018

Repository files navigation

Nomadoctor

Simple, dockerized way to backup and restore your Nomad jobs

Backup:

NOMAD_ENDPOINT=http://10.0.1.1:4646
JOBS_FILE=my_backup

docker run --rm \
djenriquez/nomadoctor:v0.1.0 \
--backup \
$NOMAD_ENDPOINT > $JOBS_FILE

Restore:

Assuming that you are running the restore in the working directory that contains $BACKUP_FILE

NOMAD_ENDPOINT=http://10.0.1.1:4646
JOBS_FILE=my_backup

docker run --rm \
-v `pwd`:/restore \
djenriquez/nomadoctor:v0.1.0 \
--restore $JOBS_FILE \
$NOMAD_ENDPOINT

About

Simple docker container for backing up/restoring nomad jobs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.2%
  • Dockerfile 6.8%